diff options
| author | Yuval Adam <_@yuv.al> | 2018-02-27 01:12:14 +0200 |
|---|---|---|
| committer | Yuval Adam <_@yuv.al> | 2018-02-27 01:12:14 +0200 |
| commit | e4d3594be0cc7041c511648b9f17264c270aa8d8 (patch) | |
| tree | 2db729260d68fd8c248581c6d1345d950990f767 /tests | |
| parent | 96b1b266324440825a1561ab51b0b6fa32f40767 (diff) | |
Fix tests for python3.5
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 |
