diff options
author | Adam Hupp <adam@hupp.org> | 2015-11-06 09:11:43 -0800 |
---|---|---|
committer | Adam Hupp <adam@hupp.org> | 2015-11-06 09:11:43 -0800 |
commit | 3069a4a01a9551d654460214b40123bec2bc6592 (patch) | |
tree | 9f24edd638c194f5e676ffad9ff63edfb7ee6eb7 | |
parent | 6c17caf4461545f365e9a91d823ee1fb55ec1574 (diff) | |
download | python-magic-tz-testfix.tar.gz |
force GMT so test runs consistentlytz-testfix
-rw-r--r-- | test/test.py | 8 |
1 files changed, 6 insertions, 2 deletions
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: |