diff options
author | Christian Heimes <christian@python.org> | 2021-04-23 18:03:25 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-23 18:03:25 (GMT) |
commit | e047239eafefe8b19725efffe7756443495cf78b (patch) | |
tree | 193bc112cb8e47334d9df1e8b580f497c5a7923b | |
parent | 019e9e816882f5c43c4b833f81844b8299e815fd (diff) | |
download | cpython-e047239eafefe8b19725efffe7756443495cf78b.zip cpython-e047239eafefe8b19725efffe7756443495cf78b.tar.gz cpython-e047239eafefe8b19725efffe7756443495cf78b.tar.bz2 |
bpo-43921: ignore failing test_wrong_cert_tls13 on Windows (GH-25561)
test_wrong_cert_tls13 sometimes fails on some Windows buildbots. Turn
failing test case into skipped test case until we have more time to
investigate.
Signed-off-by: Christian Heimes <christian@python.org>
-rw-r--r-- | Lib/test/test_ssl.py | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 8c84657..e2d0def 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -3163,7 +3163,9 @@ class ThreadedTests(unittest.TestCase): s.connect((HOST, server.port)) try: s.write(b'data') - s.read(4) + s.read(1000) + s.write(b'should have failed already') + s.read(1000) except ssl.SSLError as e: if support.verbose: sys.stdout.write("\nSSLError is %r\n" % e) @@ -3173,7 +3175,13 @@ class ThreadedTests(unittest.TestCase): if support.verbose: sys.stdout.write("\nsocket.error is %r\n" % e) else: - self.fail("Use of invalid cert should have failed!") + if sys.platform == "win32": + self.skipTest( + "Ignoring failed test_wrong_cert_tls13 test case. " + "The test is flaky on Windows, see bpo-43921." + ) + else: + self.fail("Use of invalid cert should have failed!") def test_rude_shutdown(self): """A brutal shutdown of an SSL server should raise an OSError |