diff options
author | Victor Stinner <vstinner@redhat.com> | 2018-06-22 17:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 17:25:44 (GMT) |
commit | 8fbbdf0c3107c3052659e166f73990b466eacbb0 (patch) | |
tree | 81ce7da212017b7918b2373dc68a50cb9fda52fc /Lib/test/test_socket.py | |
parent | 209abf746985526bce255e2fba97d3246924885d (diff) | |
download | cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.zip cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.tar.gz cpython-8fbbdf0c3107c3052659e166f73990b466eacbb0.tar.bz2 |
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
Diffstat (limited to 'Lib/test/test_socket.py')
-rw-r--r-- | Lib/test/test_socket.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index f377ebc..44966e4 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: |