Skip to content

Commit 8735443

Browse files
committed
python 2.6 needs an explicit index in formatting strings
1 parent b37384d commit 8735443

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_ordering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def get_tests(module_name):
2020

2121

2222
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(
2424
test_file_name.replace('.', '\.'))
2525
for line in output.split('\n'):
2626
match = re.match(regex, line)
@@ -40,7 +40,7 @@ def get_order(output, test_file_name):
4040
])
4141
def test_ordering(module_name, capsys):
4242
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)
4545
out, err = capsys.readouterr()
4646
assert list(module.ordering) == get_order(out, relative_filename)

0 commit comments

Comments
 (0)