[pypy-svn] r8954 - pypy/dist/lib-python-2.3.4/test
ac at codespeak.net
ac at codespeak.net
Mon Feb 7 16:29:56 CET 2005
Author: ac
Date: Mon Feb 7 16:29:56 2005
New Revision: 8954
Modified:
pypy/dist/lib-python-2.3.4/test/conftest.py
Log:
Add tests as per Seo Sanghyeon and run testmodules in alphabetic order.
Modified: pypy/dist/lib-python-2.3.4/test/conftest.py
==============================================================================
--- pypy/dist/lib-python-2.3.4/test/conftest.py (original)
+++ pypy/dist/lib-python-2.3.4/test/conftest.py Mon Feb 7 16:29:56 2005
@@ -25,16 +25,21 @@
mydir = py.magic.autopath().dirpath()
working_unittests = (
-'test_urlparse.py',
'test_base64.py',
'test_binop.py',
'test_bisect.py',
'test_call',
'test_codeop.py',
'test_compile.py',
-'test_operator.py',
'test_heapq.py',
+'test_htmllib.py',
+'test_htmlparser.py',
+'test_operator.py',
+'test_pprint.py',
+'test_sgmllib.py',
'test_sys.py',
+'test_textwrap.py',
+'test_urlparse.py',
)
working_outputtests = (
@@ -62,10 +67,14 @@
class Directory(py.test.collect.Directory):
def __iter__(self):
+ all_tests = []
for test in self.fspath.listdir('test_*.py'):
if test.basename not in working_outputtests and \
test.basename not in working_unittests:
continue
+ all_tests.append(test)
+ all_tests.sort()
+ for test in all_tests:
yield Module(test)
def app_list_testmethods(mod, testcaseclass):
@@ -150,7 +159,7 @@
class AppTestCaseMethod(py.test.Item):
def __init__(self, fspath, space, w_name, w_method, w_setup, w_teardown):
self.space = space
- name = space.str_w(w_name)
+ self.name = name = space.str_w(w_name)
extpy = py.path.extpy(fspath, name)
super(AppTestCaseMethod, self).__init__(extpy)
self.w_method = w_method
More information about the Pypy-commit
mailing list