diff options
author | Guido van Rossum <guido@python.org> | 2002-06-12 21:19:40 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-12 21:19:40 (GMT) |
commit | 284a2cf07fe3cf8d8acdd8cbb1d3e6a357dff662 (patch) | |
tree | c5b74dda84ee6000e98f03f414411445866afa9b | |
parent | 1c938014a3217453ec04220233bcb0a9aa3091b6 (diff) | |
download | cpython-284a2cf07fe3cf8d8acdd8cbb1d3e6a357dff662.zip cpython-284a2cf07fe3cf8d8acdd8cbb1d3e6a357dff662.tar.gz cpython-284a2cf07fe3cf8d8acdd8cbb1d3e6a357dff662.tar.bz2 |
Don't test for Java, test for sys.getrefcount.
-rw-r--r-- | Lib/test/test_socket.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_socket.py b/Lib/test/test_socket.py index 8e00465..34d5f76 100644 --- a/Lib/test/test_socket.py +++ b/Lib/test/test_socket.py @@ -214,10 +214,10 @@ class GeneralModuleTests(unittest.TestCase): if not fqhn in all_host_names: self.fail("Error testing host resolution mechanisms.") - def testJavaRef(self): + def testRefCountGetNameInfo(self): """Testing reference count for getnameinfo.""" import sys - if not sys.platform.startswith('java'): + if hasattr(sys, "getrefcount"): try: # On some versions, this loses a reference orig = sys.getrefcount(__name__) |