Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5cf0b8 commit ed9bf12Copy full SHA for ed9bf12
1 file changed
Lib/test/test_array.py
@@ -602,12 +602,13 @@ def test_buffer(self):
602
603
def test_bug_782369(self):
604
import sys
605
- for i in range(10):
606
- b = array.array('B', range(64))
607
- rc = sys.getrefcount(10)
608
609
610
- self.assertEqual(rc, sys.getrefcount(10))
+ if hasattr(sys, "getrefcount"):
+ for i in range(10):
+ b = array.array('B', range(64))
+ rc = sys.getrefcount(10)
611
+ self.assertEqual(rc, sys.getrefcount(10))
612
613
class StringTest(BaseTest):
614
0 commit comments