comparison tests/test-wireproto-clientreactor.py @ 41119:685cf59a134f

tests: correct version check in clientreactor test Experimentally, `(3, 6, 3)` is less than `sys.version_info` on an actual Python 3.6.3 installation. Let's just check `< (3, 6, 4)` instead of `<= (3, 6, 3)` so we stop seeing this bogus failure. Differential Revision: https://phab.mercurial-scm.org/D5502
author Augie Fackler <raf@durin42.com>
date Sun, 06 Jan 2019 15:25:10 -0500
parents 07b87ee2ea75
children 2372284d9457
comparison
equal deleted inserted replaced
41118:8d03d131f7d3 41119:685cf59a134f
599 request2.requestid, outstream.flush()))) 599 request2.requestid, outstream.flush())))
600 self.assertEqual(action, b'responsedata') 600 self.assertEqual(action, b'responsedata')
601 self.assertEqual(meta[b'data'], response2) 601 self.assertEqual(meta[b'data'], response2)
602 602
603 if __name__ == '__main__': 603 if __name__ == '__main__':
604 if (3, 6, 0) <= sys.version_info <= (3, 6, 3): 604 if (3, 6, 0) <= sys.version_info < (3, 6, 4):
605 # Python 3.6.0 through 3.6.3 inclusive shipped with 605 # Python 3.6.0 through 3.6.3 inclusive shipped with
606 # https://bugs.python.org/issue31825 and we can't run these 606 # https://bugs.python.org/issue31825 and we can't run these
607 # tests on those specific versions of Python. Sigh. 607 # tests on those specific versions of Python. Sigh.
608 sys.exit(80) 608 sys.exit(80)
609 import silenttestrunner 609 import silenttestrunner