[pypy-svn] r47515 - pypy/dist/pypy/module/fcntl/test

fijal at codespeak.net fijal at codespeak.net
Wed Oct 17 16:13:27 CEST 2007


Author: fijal
Date: Wed Oct 17 16:13:25 2007
New Revision: 47515

Modified:
   pypy/dist/pypy/module/fcntl/test/test_fcntl.py
Log:
(exarkun) fix the test


Modified: pypy/dist/pypy/module/fcntl/test/test_fcntl.py
==============================================================================
--- pypy/dist/pypy/module/fcntl/test/test_fcntl.py	(original)
+++ pypy/dist/pypy/module/fcntl/test/test_fcntl.py	Wed Oct 17 16:13:25 2007
@@ -97,8 +97,8 @@
         if "linux" in sys.platform:
             # test managing signals
             assert fcntl.fcntl(f, fcntl.F_GETOWN) == 0
-            fcntl.fcntl(f, fcntl.F_SETOWN, 20)
-            assert fcntl.fcntl(f, fcntl.F_GETOWN) == 20
+            fcntl.fcntl(f, fcntl.F_SETOWN, os.getpid())
+            assert fcntl.fcntl(f, fcntl.F_GETOWN) == os.getpid()
             assert fcntl.fcntl(f, fcntl.F_GETSIG) == 0
             fcntl.fcntl(f, fcntl.F_SETSIG, 20)
             assert fcntl.fcntl(f, fcntl.F_GETSIG) == 20



More information about the Pypy-commit mailing list