Fix: bt2: use of undefined variable in _VariantFieldClassWithSelectorTestCase.test_co...
[babeltrace.git] / tests / bindings / python / bt2 / test_field_class.py
index c1a7afbc506825b87df96022a6286d225d134aa5..e6380474126cc6dd32b55d9bf5fbc588ca780354 100644 (file)
@@ -871,6 +871,7 @@ class _VariantFieldClassWithSelectorTestCase:
 
     def test_const_append(self):
         fc_const = self._create_default_const_field_class()
+        str_field_class = self._tc.create_string_field_class()
         with self.assertRaises(AttributeError):
             fc_const.append_option('str', str_field_class, self._ranges1)
 
This page took 0.022448 seconds and 4 git commands to generate.