[pypy-svn] r46300 - pypy/branch/pypy-more-rtti-inprogress/module/posix/test
arigo at codespeak.net
arigo at codespeak.net
Tue Sep 4 12:47:39 CEST 2007
Author: arigo
Date: Tue Sep 4 12:47:37 2007
New Revision: 46300
Modified:
pypy/branch/pypy-more-rtti-inprogress/module/posix/test/test_posix2.py
Log:
Skip tests for Windows.
Modified: pypy/branch/pypy-more-rtti-inprogress/module/posix/test/test_posix2.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/module/posix/test/test_posix2.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/module/posix/test/test_posix2.py Tue Sep 4 12:47:37 2007
@@ -26,8 +26,9 @@
cls.w_path = space.wrap(str(path))
cls.w_path2 = space.wrap(str(path2))
cls.w_pdir = space.wrap(str(pdir))
- cls.w_getuid = space.wrap(os.getuid())
- cls.w_geteuid = space.wrap(os.geteuid())
+ if hasattr(os, 'getuid'):
+ cls.w_getuid = space.wrap(os.getuid())
+ cls.w_geteuid = space.wrap(os.geteuid())
def test_posix_is_pypy_s(self):
assert self.posix.__file__
@@ -268,10 +269,11 @@
assert isinstance(i, str)
assert isinstance(res, tuple)
- def test_os_getuid(self):
- os = self.posix
- assert os.getuid() == self.getuid
- assert os.geteuid() == self.geteuid
+ if hasattr(os, 'getuid'):
+ def test_os_getuid(self):
+ os = self.posix
+ assert os.getuid() == self.getuid
+ assert os.geteuid() == self.geteuid
def test_largefile(self):
os = self.posix
More information about the Pypy-commit
mailing list