Skip to content

Commit b0fbeae

Browse files
committed
Add test on empty tuple
1 parent ce1b2ff commit b0fbeae

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_capi/test_tuple.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,10 @@ def test_tuple_fromarray(self):
287287
copy = tuple_fromarray(tup)
288288
self.assertEqual(copy, tup)
289289

290+
tup = ()
291+
copy = tuple_fromarray(tup)
292+
self.assertIs(copy, tup)
293+
290294

291295
if __name__ == "__main__":
292296
unittest.main()

0 commit comments

Comments
 (0)