Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r61298:402939c23428
Date: 2013-02-15 16:52 -0800
http://bitbucket.org/pypy/pypy/changeset/402939c23428/
Log: 2to3
diff --git a/pypy/module/fcntl/test/test_fcntl.py
b/pypy/module/fcntl/test/test_fcntl.py
--- a/pypy/module/fcntl/test/test_fcntl.py
+++ b/pypy/module/fcntl/test/test_fcntl.py
@@ -32,13 +32,13 @@
fcntl.fcntl(f, 1, 0)
fcntl.fcntl(f, 1)
- fcntl.fcntl(F(long(f.fileno())), 1)
+ fcntl.fcntl(F(int(f.fileno())), 1)
raises(TypeError, fcntl.fcntl, "foo")
raises(TypeError, fcntl.fcntl, f, "foo")
raises(TypeError, fcntl.fcntl, F("foo"), 1)
raises(ValueError, fcntl.fcntl, -1, 1, 0)
raises(ValueError, fcntl.fcntl, F(-1), 1, 0)
- raises(ValueError, fcntl.fcntl, F(long(-1)), 1, 0)
+ raises(ValueError, fcntl.fcntl, F(int(-1)), 1, 0)
assert fcntl.fcntl(f, 1, 0) == 0
assert fcntl.fcntl(f, 2, "foo") == b"foo"
assert fcntl.fcntl(f, 2, memoryview(b"foo")) == b"foo"
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit