projects
/
deliverable
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Python bt2: remove type restriction on structure __setitem__
[deliverable/babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_fields.py
diff --git
a/tests/bindings/python/bt2/test_fields.py
b/tests/bindings/python/bt2/test_fields.py
index 3b0b424edba734ed15c3e4cf706463d8440b56e0..04ef09750480b1f7b318a5e2201a07dd1e9a8889 100644
(file)
--- a/
tests/bindings/python/bt2/test_fields.py
+++ b/
tests/bindings/python/bt2/test_fields.py
@@
-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.024676 seconds
and
5
git commands to generate.