[pypy-commit] pypy default: skip pwd test_ztranslation on non-posix

bdkearns noreply at buildbot.pypy.org
Tue Mar 18 03:09:01 CET 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r70040:34c8e179633d
Date: 2014-03-17 19:08 -0700
http://bitbucket.org/pypy/pypy/changeset/34c8e179633d/

Log:	skip pwd test_ztranslation on non-posix

diff --git a/pypy/module/pwd/test/test_pwd.py b/pypy/module/pwd/test/test_pwd.py
--- a/pypy/module/pwd/test/test_pwd.py
+++ b/pypy/module/pwd/test/test_pwd.py
@@ -1,8 +1,8 @@
 import os
-import py
+import pytest
 
 if os.name != 'posix':
-    py.test.skip('pwd module only available on unix')
+    pytest.skip('pwd module only available on unix')
 
 class AppTestPwd:
     spaceconfig = dict(usemodules=['pwd'])
diff --git a/pypy/module/pwd/test/test_ztranslation.py b/pypy/module/pwd/test/test_ztranslation.py
--- a/pypy/module/pwd/test/test_ztranslation.py
+++ b/pypy/module/pwd/test/test_ztranslation.py
@@ -1,5 +1,9 @@
+import os
+import pytest
 from pypy.objspace.fake.checkmodule import checkmodule
 
+if os.name != 'posix':
+    pytest.skip('pwd module only available on unix')
 
 def test_checkmodule():
     checkmodule('pwd')


More information about the pypy-commit mailing list