From 899828de0662e6832bc63c441d75e09b5293c41e Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Wed, 20 Sep 2017 19:08:25 +0200 Subject: debug --- tests/e2e/conditional_downloads.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/e2e/conditional_downloads.py b/tests/e2e/conditional_downloads.py index 6b9a8409..cbd252fd 100755 --- a/tests/e2e/conditional_downloads.py +++ b/tests/e2e/conditional_downloads.py @@ -28,11 +28,14 @@ def main(reactor, *args): assert filesize > 1 # touch file to 5 minutes in the past past = int(os.path.getmtime(fname)) - 300 + print "PAST MTIME", past os.utime(fname, (past, past)) assert os.path.getmtime(fname) == past yield httpRequest(client._agent, URI, method='GET', saveto=fname) # it was not modified - assert os.path.getmtime(fname) == past + current = os.path.getmtime(fname) + print "CURRENT MTIME", current + assert current == past print 'OK' shutil.rmtree(tmp) -- cgit v1.2.3