]> granicus.if.org Git - python/commitdiff
Don't test for Java, test for sys.getrefcount.
authorGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 21:19:40 +0000 (21:19 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 12 Jun 2002 21:19:40 +0000 (21:19 +0000)
Lib/test/test_socket.py

index 8e004655088d889e77a1ddb3dbe1a90be94811a7..34d5f76fd22d9b5eeeae621e614680c7f548753a 100644 (file)
@@ -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__)