]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
Disable twisted's test_process on python 3.
authorBen Darnell <ben@bendarnell.com>
Wed, 20 May 2015 01:46:21 +0000 (21:46 -0400)
committerBen Darnell <ben@bendarnell.com>
Wed, 20 May 2015 01:46:21 +0000 (21:46 -0400)
The new twisted 15.2.0 has some failures in this test that appear to be
interactions between the two package's test suites rather than a problem
in the integration itself, so just disable the tests for now.

tornado/test/twisted_test.py

index 8ace993d3937cd813be22dacad13ece21c524962..22410567a8955f0dff2601ad8614fbb12358d37b 100644 (file)
@@ -593,6 +593,14 @@ if have_twisted:
         ],
         'twisted.internet.test.test_unix.UNIXPortTestsBuilder': [],
     }
+    if sys.version_info >= (3,):
+        # In Twisted 15.2.0 on Python 3.4, the process tests will try to run
+        # but fail, due in part to interactions between Tornado's strict
+        # warnings-as-errors policy and Twisted's own warning handling
+        # (it was not obvious how to configure the warnings module to
+        # reconcile the two), and partly due to what looks like a packaging
+        # error (process_cli.py missing). For now, just skip it.
+        del twisted_tests['twisted.internet.test.test_process.ProcessTestsBuilder']
     for test_name, blacklist in twisted_tests.items():
         try:
             test_class = import_object(test_name)