From 3069a4a01a9551d654460214b40123bec2bc6592 Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Fri, 6 Nov 2015 09:11:43 -0800 Subject: force GMT so test runs consistently --- test/test.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/test.py b/test/test.py index ba32ff8..b74a25f 100644 --- a/test/test.py +++ b/test/test.py @@ -1,3 +1,7 @@ +import os +# for output which reports a local time +os.environ['TZ'] = 'GMT' + import os.path import unittest @@ -39,8 +43,8 @@ class MagicTest(unittest.TestCase): self.assert_values(m, { 'magic.pyc': 'python 2.4 byte-compiled', 'test.pdf': 'PDF document, version 1.2', - 'test.gz': - 'gzip compressed data, was "test", last modified: Sat Jun 28 18:32:52 2008, from Unix' , + 'test.gz': + 'gzip compressed data, was "test", last modified: Sun Jun 29 01:32:52 2008, from Unix', 'text.txt': 'ASCII text', }) finally: -- cgit v1.2.1