tests: skip wireproto clientreactor tests on Python 3.6.0-3.6.3 inclusive
authorAugie Fackler <augie@google.com>
Thu, 01 Nov 2018 16:13:01 -0400
changeset 40482 07b87ee2ea75
parent 40481 90517fad4293
child 40483 4e6ffcb5b9fc
tests: skip wireproto clientreactor tests on Python 3.6.0-3.6.3 inclusive See comment next to the if statement for sad details. Differential Revision: https://phab.mercurial-scm.org/D5207
tests/test-wireproto-clientreactor.py
--- a/tests/test-wireproto-clientreactor.py	Thu Nov 01 15:58:01 2018 -0400
+++ b/tests/test-wireproto-clientreactor.py	Thu Nov 01 16:13:01 2018 -0400
@@ -1,5 +1,6 @@
 from __future__ import absolute_import
 
+import sys
 import unittest
 import zlib
 
@@ -600,5 +601,10 @@
         self.assertEqual(meta[b'data'], response2)
 
 if __name__ == '__main__':
+    if (3, 6, 0) <= sys.version_info <= (3, 6, 3):
+        # Python 3.6.0 through 3.6.3 inclusive shipped with
+        # https://bugs.python.org/issue31825 and we can't run these
+        # tests on those specific versions of Python. Sigh.
+        sys.exit(80)
     import silenttestrunner
     silenttestrunner.main(__name__)