[pypy-svn] r49599 - pypy/dist/pypy/objspace/std/test

arigo at codespeak.net arigo at codespeak.net
Mon Dec 10 15:22:04 CET 2007


Author: arigo
Date: Mon Dec 10 15:22:04 2007
New Revision: 49599

Modified:
   pypy/dist/pypy/objspace/std/test/test_index.py
Log:
Support for py.test -A.


Modified: pypy/dist/pypy/objspace/std/test/test_index.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_index.py	(original)
+++ pypy/dist/pypy/objspace/std/test/test_index.py	Mon Dec 10 15:22:04 2007
@@ -260,13 +260,13 @@
     def setup_method(self, method):
         SeqTestCase.setup_method(self, method)
         self.w_seq = self.space.wrap("this is a test")
-        self.w_const = self.space.w_str
+        self.w_const = self.space.appexec([], """(): return str""")
     
 class AppTest_UnicodeTestCase(SeqTestCase, StringTestCase):
     def setup_method(self, method):
         SeqTestCase.setup_method(self, method)
         self.w_seq = self.space.wrap(u"this is a test")
-        self.w_const = self.space.w_unicode
+        self.w_const = self.space.appexec([], """(): return unicode""")
 
 
 class AppTest_XRangeTestCase:



More information about the Pypy-commit mailing list