From 8fbbdf0c3107c3052659e166f73990b466eacbb0 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Fri, 22 Jun 2018 19:25:44 +0200 Subject: bpo-33671: Add support.MS_WINDOWS and support.MACOS (GH-7800) * Add support.MS_WINDOWS: True if Python is running on Microsoft Windows. * Add support.MACOS: True if Python is running on Apple macOS. * Replace support.is_android with support.ANDROID * Replace support.is_jython with support.JYTHON * Cleanup code to initialize unix_shell --- Lib/test/test_socket.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/test/test_socket.py') diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index f377ebcb27..44966e450e 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -1038,7 +1038,7 @@ class GeneralModuleTests(unittest.TestCase): eq(udpport, port) # Now make sure the lookup by port returns the same service name # Issue #26936: Android getservbyport() is broken. - if not support.is_android: + if not support.ANDROID: eq(socket.getservbyport(port2), service) eq(socket.getservbyport(port, 'tcp'), service) if udpport is not None: -- cgit v1.2.1