From e4d3594be0cc7041c511648b9f17264c270aa8d8 Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Tue, 27 Feb 2018 01:12:14 +0200 Subject: Fix tests for python3.5 --- tests/test_parse.py | 2 +- 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 -- cgit v1.3.1