cubicweb/test/unittest_binary.py
changeset 12355 c703dc95c82e
parent 11279 e4f11ef1face
child 12567 26744ad37953
--- a/cubicweb/test/unittest_binary.py	Tue Oct 09 16:24:12 2018 +0200
+++ b/cubicweb/test/unittest_binary.py	Mon Oct 29 10:04:31 2018 +0100
@@ -33,7 +33,7 @@
         Binary(b'toto')
         Binary(bytearray(b'toto'))
         if PY2:
-            Binary(buffer('toto'))
+            Binary(buffer('toto'))  # noqa: F821
         else:
             Binary(memoryview(b'toto'))
         with self.assertRaises((AssertionError, TypeError)):
@@ -45,7 +45,7 @@
         b.write(b'toto')
         b.write(bytearray(b'toto'))
         if PY2:
-            b.write(buffer('toto'))
+            b.write(buffer('toto'))  # noqa: F821
         else:
             b.write(memoryview(b'toto'))
         with self.assertRaises((AssertionError, TypeError)):