Commit 284a2cf0 authored by Guido van Rossum's avatar Guido van Rossum

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

parent 1c938014
......@@ -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__)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment