Author: Brian Kearns <[email protected]>
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')
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit