Go to the documentation of this file.00001 from __future__ import absolute_import, division, print_function, with_statement
00002
00003 import os
00004 import socket
00005 import sys
00006
00007
00008
00009 if sys.version_info < (2, 7):
00010
00011 import unittest2 as unittest
00012 else:
00013
00014
00015 from tornado.testing import unittest
00016
00017 skipIfNonUnix = unittest.skipIf(os.name != 'posix' or sys.platform == 'cygwin',
00018 "non-unix platform")
00019
00020
00021
00022 skipOnTravis = unittest.skipIf('TRAVIS' in os.environ,
00023 'timing tests unreliable on travis')
00024
00025
00026
00027 skipIfNoNetwork = unittest.skipIf('NO_NETWORK' in os.environ,
00028 'network access disabled')
00029
00030 skipIfNoIPv6 = unittest.skipIf(not socket.has_ipv6, 'ipv6 support not present')