projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: field.py: _value_to_int(): require `numbers.Integral`
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_field.py
diff --git
a/tests/bindings/python/bt2/test_field.py
b/tests/bindings/python/bt2/test_field.py
index 356e053246b94f20d24c0797650096dd78c1a01a..a22d3f4a89064549dc068562d701a3f1db3edac9 100644
(file)
--- a/
tests/bindings/python/bt2/test_field.py
+++ b/
tests/bindings/python/bt2/test_field.py
@@
-636,11
+636,6
@@
class _TestIntegerFieldCommon(_TestNumericField):
self._def.value = field
self.assertEqual(self._def, raw)
self._def.value = field
self.assertEqual(self._def, raw)
- def test_assign_float(self):
- raw = 123.456
- self._def.value = raw
- self.assertEqual(self._def, int(raw))
-
def test_assign_invalid_type(self):
with self.assertRaises(TypeError):
self._def.value = 'yes'
def test_assign_invalid_type(self):
with self.assertRaises(TypeError):
self._def.value = 'yes'
This page took
0.024552 seconds
and
4
git commands to generate.