[pypy-commit] pypy testing-cleanup-py3k: Backed out changeset dc234c6c4b34 (didn't work)

rlamy pypy.commits at gmail.com
Sun Jun 12 15:14:13 EDT 2016


Author: Ronan Lamy <ronan.lamy at gmail.com>
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"ą")
+            posix.stat(u"ą")
         except OSError:
             pass
 
     def test_open_unicode(self):
         # Ensure passing unicode doesn't raise UnicodeEncodeError
+        import posix
         try:
-            self.posix.open(u"ą", self.posix.O_WRONLY)
+            posix.open(u"ą", posix.O_WRONLY)
         except OSError:
             pass
 
     def test_remove_unicode(self):
         # See 2 above ;)
+        import posix
         try:
-            self.posix.remove(u"ą")
+            posix.remove(u"ą")
         except OSError:
             pass
 


More information about the pypy-commit mailing list