Skip to content

Commit 595569e

Browse files
committed
don't run flaky test on python 2.6
1 parent 101e200 commit 595569e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/log_handler_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
import logging
33
import mock
4+
import sys
45

56
import unittest2
67
import testlib
@@ -85,6 +86,11 @@ def test_earliest_messages_logged_via(self):
8586
expect = 'Parent is context %s (%s)' % (c1.context_id, 'parent')
8687
self.assertTrue(expect in logs)
8788

89+
StartupTest = unittest2.skipIf(
90+
condition=sys.version_info < (2, 7),
91+
reason="Message log flaky on Python < 2.7"
92+
)(StartupTest)
93+
8894

8995
if __name__ == '__main__':
9096
unittest2.main()

0 commit comments

Comments
 (0)