mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-15 00:03:28 +01:00
tests: remove 3.2, fix auto_index test assert
This commit is contained in:
parent
42aa12f9ae
commit
3f734e1c98
@ -3,7 +3,6 @@ language: python
|
||||
python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user