Don't test for Java, test for sys.getrefcount.

This commit is contained in:
Guido van Rossum 2002-06-12 21:19:40 +00:00
parent 1c938014a3
commit 284a2cf07f
1 changed files with 2 additions and 2 deletions

View 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__)