File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def get_tests(module_name):
20
20
21
21
22
22
def _names_of_tests (output , test_file_name ):
23
- regex = r'^{}:(\d+): test_([a-z]) PASSED$' .format (
23
+ regex = r'^{0 }:(\d+): test_([a-z]) PASSED$' .format (
24
24
test_file_name .replace ('.' , '\.' ))
25
25
for line in output .split ('\n ' ):
26
26
match = re .match (regex , line )
@@ -40,7 +40,7 @@ def get_order(output, test_file_name):
40
40
])
41
41
def test_ordering (module_name , capsys ):
42
42
module = get_module (module_name )
43
- pytest .main ('{}/{}.py -vv' .format (__here__ , module_name ))
44
- relative_filename = 'tests/{}.py' .format (module_name )
43
+ pytest .main ('{0 }/{1 }.py -vv' .format (__here__ , module_name ))
44
+ relative_filename = 'tests/{0 }.py' .format (module_name )
45
45
out , err = capsys .readouterr ()
46
46
assert list (module .ordering ) == get_order (out , relative_filename )
You can’t perform that action at this time.
0 commit comments