[pypy-svn] r29572 - pypy/dist/pypy/module/_sre/test
cfbolz at codespeak.net
cfbolz at codespeak.net
Sat Jul 1 20:58:57 CEST 2006
Author: cfbolz
Date: Sat Jul 1 20:58:54 2006
New Revision: 29572
Modified:
pypy/dist/pypy/module/_sre/test/test_app_sre.py
Log:
it's no longer necessary so skip these tests, since the _sre implementation is
now used by default
Modified: pypy/dist/pypy/module/_sre/test/test_app_sre.py
==============================================================================
--- pypy/dist/pypy/module/_sre/test/test_app_sre.py (original)
+++ pypy/dist/pypy/module/_sre/test/test_app_sre.py Sat Jul 1 20:58:54 2006
@@ -13,15 +13,9 @@
b.s = support_test_app_sre
sys.path.pop(0)
-def skip_if_faked(cls):
- if "_sre" not in cls.space.options.usemodules:
- skip("--usemodules=_sre option not provided")
-
class AppTestSrePy:
- setup_class = skip_if_faked
-
def test_magic(self):
import _sre, sre_constants
assert sre_constants.MAGIC == _sre.MAGIC
@@ -33,8 +27,6 @@
class AppTestSrePattern:
- setup_class = skip_if_faked
-
def test_copy(self):
# copy support is disabled by default in _sre.c
import re
@@ -94,8 +86,6 @@
class AppTestSreMatch:
- setup_class = skip_if_faked
-
def test_copy(self):
import re
# copy support is disabled by default in _sre.c
@@ -201,8 +191,6 @@
class AppTestSreScanner:
- setup_class = skip_if_faked
-
def test_scanner_attributes(self):
import re
p = re.compile("bla")
@@ -235,7 +223,6 @@
class AppTestGetlower:
def setup_class(cls):
- skip_if_faked(cls)
# This imports support_test_sre as the global "s"
app2interp_temp(app_init_globals_hack)(cls.space)
@@ -279,8 +266,6 @@
class AppTestSimpleSearches:
- setup_class = skip_if_faked
-
def test_search_simple_literal(self):
import re
assert re.search("bla", "bla")
@@ -461,8 +446,6 @@
class AppTestMarksStack:
- setup_class = skip_if_faked
-
def test_mark_stack_branch(self):
import re
m = re.match("b(.)a|b.b", "bob")
@@ -497,7 +480,6 @@
class AppTestOpcodes:
def setup_class(cls):
- skip_if_faked(cls)
# This imports support_test_sre as the global "s"
app2interp_temp(app_init_globals_hack)(cls.space)
@@ -875,8 +857,6 @@
class AppTestOptimizations:
"""These tests try to trigger optmized edge cases."""
- setup_class = skip_if_faked
-
def test_match_length_optimization(self):
import re
assert None == re.match("bla", "blub")
More information about the Pypy-commit
mailing list