From 3f734e1c98e639906e14a8723ea351023432ae13 Mon Sep 17 00:00:00 2001 From: Ilya Kreymer Date: Thu, 10 Mar 2016 13:07:57 -0800 Subject: [PATCH] tests: remove 3.2, fix auto_index test assert --- .travis.yml | 1 - tests/test_auto_colls.py | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8a6e8496..716ebdb7 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,6 @@ language: python python: - "2.6" - "2.7" - - "3.2" - "3.3" - "3.4" - "3.5" diff --git a/tests/test_auto_colls.py b/tests/test_auto_colls.py index 81f3aa15..0f502453 100644 --- a/tests/test_auto_colls.py +++ b/tests/test_auto_colls.py @@ -506,11 +506,11 @@ class TestManagedColls(object): index_file = os.path.join(auto_dir, INDEX_DIR, AUTOINDEX_FILE) assert os.path.isfile(index_file) - with open(index_file, 'rb') as fh: + with open(index_file, 'r') as fh: index = fh.read() - assert b'"example.warc.gz' in index - assert b'"sub/example-extra.warc' in index, index + assert '"example.warc.gz' in index, index + assert '"sub/example-extra.warc' in index, index mtime = os.path.getmtime(index_file)