diff options
author | Jarrod Millman <millman@berkeley.edu> | 2007-10-02 04:07:12 +0000 |
---|---|---|
committer | Jarrod Millman <millman@berkeley.edu> | 2007-10-02 04:07:12 +0000 |
commit | c7108cb9ab07fc410cc8b2f849cbac1d04f3382c (patch) | |
tree | e7c3d9fb7d55de6185f7f883f58120597d5849a1 /numpy/testing/numpytest.py | |
parent | cc3e7f3907f6c0621e5ff8866a078e4049fd2be8 (diff) | |
download | numpy-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.py | 2 |
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. """ |