Author: Ronan Lamy <[email protected]>
Branch: testing-cleanup-py3k
Changeset: r85115:77ee6d7d12af
Date: 2016-06-12 20:11 +0100
http://bitbucket.org/pypy/pypy/changeset/77ee6d7d12af/

Log:    Backed out changeset dc234c6c4b34 (didn't work)

diff --git a/pypy/module/posix/test/test_posix2.py 
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -1183,7 +1183,6 @@
 
 class AppTestPosixUnicode:
     def setup_class(cls):
-        cls.w_posix = cls.space.appexec([], GET_POSIX)
         if cls.runappdirect:
             # Can't change encoding
             try:
@@ -1202,22 +1201,25 @@
 
     def test_stat_unicode(self):
         # test that passing unicode would not raise UnicodeDecodeError
+        import posix
         try:
-            self.posix.stat(u"&#261;")
+            posix.stat(u"&#261;")
         except OSError:
             pass
 
     def test_open_unicode(self):
         # Ensure passing unicode doesn't raise UnicodeEncodeError
+        import posix
         try:
-            self.posix.open(u"&#261;", self.posix.O_WRONLY)
+            posix.open(u"&#261;", posix.O_WRONLY)
         except OSError:
             pass
 
     def test_remove_unicode(self):
         # See 2 above ;)
+        import posix
         try:
-            self.posix.remove(u"&#261;")
+            posix.remove(u"&#261;")
         except OSError:
             pass
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to