[pypy-svn] r64182 - pypy/trunk/pypy/module/_sre/test
fijal at codespeak.net
fijal at codespeak.net
Thu Apr 16 20:10:37 CEST 2009
Author: fijal
Date: Thu Apr 16 20:10:37 2009
New Revision: 64182
Modified:
pypy/trunk/pypy/module/_sre/test/test_app_sre.py
Log:
Make those tests explode even without translation
Modified: pypy/trunk/pypy/module/_sre/test/test_app_sre.py
==============================================================================
--- pypy/trunk/pypy/module/_sre/test/test_app_sre.py (original)
+++ pypy/trunk/pypy/module/_sre/test/test_app_sre.py Thu Apr 16 20:10:37 2009
@@ -2,6 +2,7 @@
import autopath
from py.test import raises, skip
from pypy.interpreter.gateway import app2interp_temp
+from pypy.conftest import gettestobjspace
def init_globals_hack(space):
space.appexec([space.wrap(autopath.this_dir)], """(this_dir):
@@ -284,6 +285,7 @@
def setup_class(cls):
# This imports support_test_sre as the global "s"
+ cls.space = gettestobjspace(usemodules=('_locale',))
init_globals_hack(cls.space)
def setup_method(self, method):
@@ -541,6 +543,7 @@
def setup_class(cls):
# This imports support_test_sre as the global "s"
+ cls.space = gettestobjspace(usemodules=('_locale',))
init_globals_hack(cls.space)
def test_length_optimization(self):
@@ -628,7 +631,7 @@
locale.resetlocale() # is this the right way to rest the locale?
except locale.Error:
# skip test
- pass
+ skip("locale error")
def test_at_uni_boundary(self):
UPPER_PI = u"\u03a0"
@@ -722,7 +725,7 @@
s.void_locale()
except locale.Error:
# skip test
- pass
+ skip("locale error")
def test_any(self):
opcodes = s.encode_literal("b") + [s.OPCODES["any"]] \
More information about the Pypy-commit
mailing list