From 9669d1b2c5c3ff410770c4177fb46b8fb08ddbd7 Mon Sep 17 00:00:00 2001 From: Jake Yip Date: Fri, 21 Oct 2022 10:50:24 +1100 Subject: [PATCH] Fix tests Remove six. tox runs on py36 so six is not needed. --- tests/test_config_files.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/test_config_files.py b/tests/test_config_files.py index 411f542..20cff32 100644 --- a/tests/test_config_files.py +++ b/tests/test_config_files.py @@ -17,7 +17,6 @@ import json import jsonschema -import six import testtools DEFAULT_DATA_JSON_PATH = 'default_data.json' @@ -50,10 +49,7 @@ def dict_raise_on_duplicates(ordered_pairs): class TestConfigFiles(testtools.TestCase): def _read_raw_file(self, file_name): - if six.PY3: - opener = functools.partial(open, encoding='utf8') - else: - opener = open + opener = functools.partial(open, encoding='utf8') with opener(file_name, 'r') as content_file: return content_file.read()