[pypy-svn] r61596 - pypy/trunk/pypy/module/posix/test
afa at codespeak.net
afa at codespeak.net
Fri Feb 6 22:22:52 CET 2009
Author: afa
Date: Fri Feb 6 22:22:52 2009
New Revision: 61596
Modified:
pypy/trunk/pypy/module/posix/test/test_posix2.py
Log:
All major platforms have os.popen
Modified: pypy/trunk/pypy/module/posix/test/test_posix2.py
==============================================================================
--- pypy/trunk/pypy/module/posix/test/test_posix2.py (original)
+++ pypy/trunk/pypy/module/posix/test/test_posix2.py Fri Feb 6 22:22:52 2009
@@ -262,12 +262,11 @@
os.unlink("onefile")
pass # <- please, inspect.getsource(), don't crash
- if hasattr(__import__(os.name), 'popen'):
- def test_popen(self):
- os = self.posix
- for i in range(5):
- stream = os.popen('echo 1')
- assert stream.read() == '1\n'
+ def test_popen(self):
+ os = self.posix
+ for i in range(5):
+ stream = os.popen('echo 1')
+ assert stream.read() == '1\n'
if hasattr(__import__(os.name), '_getfullpathname'):
def test__getfullpathname(self):
More information about the Pypy-commit
mailing list