[dataimport/test] Ignore flake8 error E741 in test_pgstore.py
authorDenis Laxalde <denis.laxalde@logilab.fr>
Mon, 30 Oct 2017 09:08:35 +0100
changeset 12219 4b5f1b676366
parent 12218 d3f3c4a4edd9
child 12220 3ba6016a459c
[dataimport/test] Ignore flake8 error E741 in test_pgstore.py This error is about "l" being an ambiguous variable name. Here, it's arguably acceptable.
cubicweb/dataimport/test/test_pgstore.py
--- a/cubicweb/dataimport/test/test_pgstore.py	Mon Oct 30 09:18:20 2017 +0100
+++ b/cubicweb/dataimport/test/test_pgstore.py	Mon Oct 30 09:08:35 2017 +0100
@@ -66,7 +66,7 @@
 
     # test buffer
     def test_create_copyfrom_buffer_tuple(self):
-        l = long if PY2 else int
+        l = long if PY2 else int  # noqa: E741
         data = ((42, l(42), 42.42, u'éléphant', DT.date(666, 1, 13), DT.time(6, 6, 6),
                  DT.datetime(666, 6, 13, 6, 6, 6)),
                 (6, l(6), 6.6, u'babar', DT.date(2014, 1, 14), DT.time(4, 2, 1),