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 589fbc7 commit 5e91e87Copy full SHA for 5e91e87
Lib/test/test_struct.py
@@ -823,7 +823,8 @@ def test_endian_table_init_subinterpreters(self):
823
self.assertListEqual(list(results), [None] * 5)
824
825
def test_operations_on_half_initialized_Struct(self):
826
- S = struct.Struct.__new__(struct.Struct)
+ with self.assertWarns(DeprecationWarning):
827
+ S = struct.Struct.__new__(struct.Struct)
828
829
spam = array.array('b', b' ')
830
self.assertRaises(RuntimeError, S.iter_unpack, spam)
0 commit comments