Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4e147de

Browse filesBrowse files
author
Paul Monson
committed
Avoid mixing debug/release CRT on Windows
1 parent 3f38d18 commit 4e147de
Copy full SHA for 4e147de

File tree

Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-4
lines changed

‎Lib/test/test_ssl.py

Copy file name to clipboardExpand all lines: Lib/test/test_ssl.py
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
ssl = support.import_module("ssl")
2727

2828
Py_DEBUG = hasattr(sys, 'gettotalrefcount')
29-
Py_DEBUG_Win32_IoT = Py_DEBUG and platform.win32_is_iot()
29+
Py_DEBUG_Win32 = Py_DEBUG and platform.win32_is_iot()
3030

3131
PROTOCOLS = sorted(ssl._PROTOCOL_NAMES)
3232
HOST = support.HOST
@@ -1347,7 +1347,7 @@ def test_load_verify_cadata(self):
13471347
ctx.load_verify_locations(cadata=b"broken")
13481348

13491349

1350-
@unittest.skipIf(sys.platform=='win32' and '' and Py_DEBUG_Win32_IoT, "Crashes on debug builds on Windows IoT")
1350+
@unittest.skipIf(Py_DEBUG_Win32, "Avoid mixing debug/release CRT on Windows")
13511351
def test_load_dh_params(self):
13521352
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_SERVER)
13531353
ctx.load_dh_params(DHFILE)
@@ -1648,7 +1648,7 @@ def test_str(self):
16481648
self.assertEqual(str(e), "foo")
16491649
self.assertEqual(e.errno, 1)
16501650

1651-
@unittest.skipIf(Py_DEBUG_Win32_IoT, "Crashes on debug builds on Windows IoT")
1651+
@unittest.skipIf(Py_DEBUG_Win32, "Avoid mixing debug/release CRT on Windows")
16521652
def test_lib_reason(self):
16531653
# Test the library and reason attributes
16541654
ctx = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)
@@ -3829,7 +3829,7 @@ def test_compression_disabled(self):
38293829
sni_name=hostname)
38303830
self.assertIs(stats['compression'], None)
38313831

3832-
@unittest.skipIf(Py_DEBUG_Win32_IoT, "Crashes on debug builds on Windows IoT")
3832+
@unittest.skipIf(Py_DEBUG_Win32, "Avoid mixing debug/release CRT on Windows")
38333833
def test_dh_params(self):
38343834
# Check we can get a connection with ephemeral Diffie-Hellman
38353835
client_context, server_context, hostname = testing_context()

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.