Python bt2: remove type restriction on structure __setitem__
[babeltrace.git] / tests / bindings / python / bt2 / test_fields.py
index 3b0b424edba734ed15c3e4cf706463d8440b56e0..04ef09750480b1f7b318a5e2201a07dd1e9a8889 100644 (file)
@@ -1356,7 +1356,8 @@ class StructureFieldTestCase(_TestCopySimple, unittest.TestCase):
         struct_ft.append_field('A', elem_ft)
         struct_field = struct_ft()
 
-        with self.assertRaises(TypeError):
+        # Will fail on access to .items() of the value
+        with self.assertRaises(AttributeError):
             struct_field['A'] = 23
 
     def test_setitem_none(self):
This page took 0.023631 seconds and 4 git commands to generate.