File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 1212import pkgutil
1313import sys
1414
15- try :
16- import unittest2 as unittest
17- except ImportError : # Python 2.7
18- import unittest
19-
2015from tmuxp import log
2116from tmuxp ._compat import string_types , PY2 , reraise
2217from tmuxp .server import Server
2318
19+ if sys .version_info < (2 , 7 ):
20+ import unittest2 as unittest
21+ else :
22+ import unittest
23+
2424t = Server ()
2525t .socket_name = 'tmuxp_test'
2626
Original file line number Diff line number Diff line change 2121from tmuxp import exc
2222from tmuxp .testsuite import t
2323
24- try :
24+ if sys . version_info < ( 2 , 7 ) :
2525 import unittest2 as unittest
26- except ImportError : # Python 2.7
26+ else :
2727 import unittest
2828
29-
3029logger = logging .getLogger (__name__ )
3130
3231TEST_SESSION_PREFIX = 'test tmuxp_'
You can’t perform that action at this time.
0 commit comments