X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fbindings%2Fpython%2Fbt2%2Ftest_field_class.py;h=4d56b467eb1c650c8ae9425d4103cf3cc61e5e83;hb=f3c9a159782f70dbd0e5dedb37e4a1ef8a6d304e;hp=d99416119caac1d7130dd7bad210583be7007f66;hpb=3fb99a226ccb40c79de6b55b5a249d93b9c5262e;p=babeltrace.git diff --git a/tests/bindings/python/bt2/test_field_class.py b/tests/bindings/python/bt2/test_field_class.py index d9941611..4d56b467 100644 --- a/tests/bindings/python/bt2/test_field_class.py +++ b/tests/bindings/python/bt2/test_field_class.py @@ -16,7 +16,6 @@ # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # -import bt2.field import unittest import bt2 import collections @@ -624,7 +623,7 @@ class _VariantFieldClassWithSelectorTestCase: def test_selector_field_path_root_scope(self): self._fill_default_fc_for_field_path_test() self.assertEqual( - self._fc.selector_field_path.root_scope, bt2.Scope.PACKET_CONTEXT + self._fc.selector_field_path.root_scope, bt2.FieldPathScope.PACKET_CONTEXT ) @@ -749,7 +748,9 @@ class DynamicArrayFieldClassTestCase(unittest.TestCase): def test_field_path_root_scope(self): fc = self._create_field_class_for_field_path_test() - self.assertEqual(fc.length_field_path.root_scope, bt2.Scope.PACKET_CONTEXT) + self.assertEqual( + fc.length_field_path.root_scope, bt2.FieldPathScope.PACKET_CONTEXT + ) def test_create_invalid_field_class(self): with self.assertRaises(TypeError):