diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_parse.py | 2 | ||||
| -rw-r--r-- | tests/test_viewstate.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_parse.py b/tests/test_parse.py index 96eef14..42b03bc 100644 --- a/tests/test_parse.py +++ b/tests/test_parse.py @@ -46,7 +46,7 @@ class TestParse(object): def test_parse_samples(self): for s in ['ngcs', 'mot', 'ecom']: - with open(f'tests/samples/{s}.sample', 'r') as f: + with open('tests/samples/{}.sample'.format(s), 'r') as f: vs = ViewState(f.read()) _ = vs.decode() diff --git a/tests/test_viewstate.py b/tests/test_viewstate.py index 0b69e1d..0483bb4 100644 --- a/tests/test_viewstate.py +++ b/tests/test_viewstate.py @@ -11,7 +11,7 @@ class TestViewState(object): def test_is_valid(self): for s in ['ngcs', 'mot', 'ecom']: - with open(f'tests/samples/{s}.sample', 'r') as f: + with open('tests/samples/{}.sample'.format(s), 'r') as f: vs = ViewState(f.read()) assert vs.is_valid() is True |
