summaryrefslogtreecommitdiff
path: root/numpy/testing/numpytest.py
diff options
context:
space:
mode:
authorJarrod Millman <millman@berkeley.edu>2007-10-02 04:07:12 +0000
committerJarrod Millman <millman@berkeley.edu>2007-10-02 04:07:12 +0000
commitc7108cb9ab07fc410cc8b2f849cbac1d04f3382c (patch)
treee7c3d9fb7d55de6185f7f883f58120597d5849a1 /numpy/testing/numpytest.py
parentcc3e7f3907f6c0621e5ff8866a078e4049fd2be8 (diff)
downloadnumpy-c7108cb9ab07fc410cc8b2f849cbac1d04f3382c.tar.gz
allow TestCase classes to be prefixed with either 'test' or 'Test'
Diffstat (limited to 'numpy/testing/numpytest.py')
-rw-r--r--numpy/testing/numpytest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/testing/numpytest.py b/numpy/testing/numpytest.py
index 2c1650215..d65074247 100644
--- a/numpy/testing/numpytest.py
+++ b/numpy/testing/numpytest.py
@@ -257,7 +257,7 @@ class NumpyTest:
Old-style test_suite(level=1) hooks are also supported.
"""
- _check_testcase_name = re.compile(r'test.*').match
+ _check_testcase_name = re.compile(r'test.*|Test.*').match
def check_testcase_name(self, name):
""" Return True if name matches TestCase class.
"""