diff --git a/.travis.yml b/.travis.yml index bab78128..354f2c61 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,9 +3,8 @@ python: - "2.7" # command to install dependencies install: - - "python setup.py -q install" - - "pip install python-coveralls" - - "pip install pytest-cov" + - python setup.py -q install + - pip install coverage pytest-cov coveralls --use-mirrors # command to run tests #script: nosetests --with-doctest #script: py.test run-tests.py ./pywb/ --doctest-modules --ignore=setup.py diff --git a/pywb/utils/timeutils.py b/pywb/utils/timeutils.py index 7af3401f..f93f324d 100644 --- a/pywb/utils/timeutils.py +++ b/pywb/utils/timeutils.py @@ -162,6 +162,10 @@ def timestamp_to_datetime(string): >>> timestamp_to_datetime('40001965252477') datetime.datetime(2999, 12, 31, 23, 24, 59) + # not a number! + >>> timestamp_to_datetime('2010abc') + datetime.datetime(2010, 12, 31, 23, 59, 59) + """ # pad to 6 digits