protect against test problems with Jython

This commit is contained in:
Skip Montanaro 2003-08-03 23:30:40 +00:00
parent d5cf0b86df
commit ed9bf12848

View file

@ -602,6 +602,7 @@ class BaseTest(unittest.TestCase):
def test_bug_782369(self): def test_bug_782369(self):
import sys import sys
if hasattr(sys, "getrefcount"):
for i in range(10): for i in range(10):
b = array.array('B', range(64)) b = array.array('B', range(64))
rc = sys.getrefcount(10) rc = sys.getrefcount(10)