Last active
December 20, 2015 04:39
-
-
Save eltjpm/6072679 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Index: athena/src/numba/numba/testing/test_support.py | |
=================================================================== | |
--- athena/src/numba/numba/testing/test_support.py (revision 83292) | |
+++ athena/src/numba/numba/testing/test_support.py (working copy) | |
@@ -177,7 +177,7 @@ | |
TestCase.__name__ = func.__name__ | |
for i, parameter in enumerate(parameters): | |
- name = '%s_%d' % (func.__name__, i) | |
+ name = 'test_%s_%d' % (func.__name__, i) | |
def testfunc(self, parameter=parameter): | |
return func(parameter) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- tests\testing\test_parametrize.py 2013-05-03 10:59:52.000000000 -0400 | |
+++ tests\testing\test_parametrize.py.new 2013-07-24 19:15:27.071118400 -0400 | |
@@ -6,8 +6,8 @@ | |
assert func_testcase.__name__ == 'func' | |
-assert hasattr(func_testcase, 'func_0') | |
-assert hasattr(func_testcase, 'func_1') | |
+assert hasattr(func_testcase, 'test_func_0') | |
+assert hasattr(func_testcase, 'test_func_1') | |
-assert func_testcase('func_0').func_0() == 'foo' | |
-assert func_testcase('func_1').func_1() == 'bar' | |
+assert func_testcase('test_func_0').test_func_0() == 'foo' | |
+assert func_testcase('test_func_1').test_func_1() == 'bar' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment