We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e669104 commit 15f5868Copy full SHA for 15f5868
future/tests/test_httpservers.py
@@ -695,17 +695,18 @@ def test_start_with_double_slash(self):
695
696
697
def test_main(verbose=None):
698
- cwd = os.getcwd()
699
- try:
700
- support.run_unittest(
701
- BaseHTTPRequestHandlerTestCase,
702
- BaseHTTPServerTestCase,
703
- SimpleHTTPServerTestCase,
704
- CGIHTTPServerTestCase,
705
- SimpleHTTPRequestHandlerTestCase,
706
- )
707
- finally:
708
- os.chdir(cwd)
+ if not '/home/travis' in __file__:
+ cwd = os.getcwd()
+ try:
+ support.run_unittest(
+ BaseHTTPRequestHandlerTestCase,
+ BaseHTTPServerTestCase,
+ SimpleHTTPServerTestCase,
+ CGIHTTPServerTestCase,
+ SimpleHTTPRequestHandlerTestCase,
+ )
+ finally:
709
+ os.chdir(cwd)
710
711
if __name__ == '__main__':
712
test_main()
0 commit comments