projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bt2: ignore comparison to None flake8 warnings in test_value.py
[babeltrace.git]
/
tests
/
bindings
/
python
/
bt2
/
test_value.py
diff --git
a/tests/bindings/python/bt2/test_value.py
b/tests/bindings/python/bt2/test_value.py
index 87f624b2464e2c1089845e83120eb7616b66372f..c7cfe0142ba4f929eec5dcd9800e0a2d11adcac4 100644
(file)
--- a/
tests/bindings/python/bt2/test_value.py
+++ b/
tests/bindings/python/bt2/test_value.py
@@
-482,10
+482,14
@@
class _TestNumericValue(_TestCopySimple):
self.assertEqual(str(self._def), str(self._def_value))
def test_eq_none(self):
self.assertEqual(str(self._def), str(self._def_value))
def test_eq_none(self):
- self.assertFalse(self._def == None)
+ # Disable the "comparison to None" warning, as this is precisely what
+ # we want to test here.
+ self.assertFalse(self._def == None) # noqa: E711
def test_ne_none(self):
def test_ne_none(self):
- self.assertTrue(self._def != None)
+ # Disable the "comparison to None" warning, as this is precisely what
+ # we want to test here.
+ self.assertTrue(self._def != None) # noqa: E711
# This is a list of binary operators used for
# This is a list of binary operators used for
@@
-1174,10
+1178,14
@@
class BoolValueTestCase(_TestNumericValue, unittest.TestCase):
self.assertEqual(str(self._def), str(self._def_value))
def test_eq_none(self):
self.assertEqual(str(self._def), str(self._def_value))
def test_eq_none(self):
- self.assertFalse(self._def == None)
+ # Disable the "comparison to None" warning, as this is precisely what
+ # we want to test here.
+ self.assertFalse(self._def == None) # noqa: E711
def test_ne_none(self):
def test_ne_none(self):
- self.assertTrue(self._def != None)
+ # Disable the "comparison to None" warning, as this is precisely what
+ # we want to test here.
+ self.assertTrue(self._def != None) # noqa: E711
def test_vfalse_eq_false(self):
self.assertEqual(self._f, False)
def test_vfalse_eq_false(self):
self.assertEqual(self._f, False)
This page took
0.022987 seconds
and
4
git commands to generate.