[pypy-commit] pypy py3k: 2to3
pjenvey
noreply at buildbot.pypy.org
Sat Feb 16 01:52:48 CET 2013
Author: Philip Jenvey <pjenvey at underboss.org>
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"
More information about the pypy-commit
mailing list