@@ -71,34 +71,6 @@ def test_tuple_new(self):
7171 self .assertRaises (SystemError , tuple_new , PY_SSIZE_T_MIN )
7272 self .assertRaises (MemoryError , tuple_new , PY_SSIZE_T_MAX )
7373
74- def test_tuple_fromarray (self ):
75- # Test PyTuple_FromArray()
76- tuple_fromarray = _testcapi .tuple_fromarray
77-
78- tup = tuple ([i ] for i in range (5 ))
79- copy = tuple_fromarray (tup )
80- self .assertEqual (copy , tup )
81- self ._tracked (copy )
82-
83- tup = tuple (42 ** i for i in range (5 ))
84- copy = tuple_fromarray (tup )
85- self .assertEqual (copy , tup )
86- self ._not_tracked (copy )
87-
88- tup = ()
89- copy = tuple_fromarray (tup )
90- self .assertIs (copy , tup )
91-
92- copy = tuple_fromarray (NULL , 0 )
93- self .assertIs (copy , ())
94-
95- with self .assertRaises (SystemError ):
96- tuple_fromarray (NULL , - 1 )
97- with self .assertRaises (SystemError ):
98- tuple_fromarray (NULL , PY_SSIZE_T_MIN )
99- with self .assertRaises (MemoryError ):
100- tuple_fromarray (NULL , PY_SSIZE_T_MAX )
101-
10274 def test_tuple_pack (self ):
10375 # Test PyTuple_Pack()
10476 pack = _testlimitedcapi .tuple_pack
0 commit comments