Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Set timezone to fix tests in travis-ci.

  • Loading branch information...
commit 476e1d107a3e2b9b0c32c3f2277ce2fc12fa4dd1 1 parent 91332af
@ralphbean authored
Showing with 5 additions and 1 deletion.
  1. +5 −1 fedmsg/tests/test_commands.py
View
6 fedmsg/tests/test_commands.py
@@ -27,6 +27,10 @@ class TestCommands(unittest.TestCase):
def setUp(self):
self.local = threading.local()
+ # Crazy. I'm sorry.
+ os.environ['TZ'] = 'US/Central'
+ time.tzset()
+
def tearDown(self):
del self.local
self.local = None
@@ -124,7 +128,7 @@ def mock_tail(self, topic="", passive=False, **kw):
output = stdout.getvalue()
expected = """name, endpoint, topic,
-{'msg': {'hello': 'world'}, 'timestamp': 'Mon Dec 3 14:41:57 2012'}
+{'msg': {'hello': 'world'}, 'timestamp': 'Mon Dec 3 13:41:57 2012'}
"""
eq_(output, expected)
Please sign in to comment.
Something went wrong with that request. Please try again.