From a39833585c6f9e1787cbd5986ec329ea1ff5754f Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Wed, 6 Jun 2018 18:53:44 -0400 Subject: [PATCH] ignore linter error for 'long' type The Python 2 type 'long' does not exist under python 3. The runtime check for the python version is already doing the right thing, but the linter does not honor that check so tell it to ignore the line. Change-Id: If7d49f043da01f94e9d18df7ef81c96ca08bd025 Signed-off-by: Doug Hellmann --- zaqar/tests/unit/storage/test_impl_sqlalchemy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zaqar/tests/unit/storage/test_impl_sqlalchemy.py b/zaqar/tests/unit/storage/test_impl_sqlalchemy.py index 11c3cdfcd..ff10880c2 100644 --- a/zaqar/tests/unit/storage/test_impl_sqlalchemy.py +++ b/zaqar/tests/unit/storage/test_impl_sqlalchemy.py @@ -97,7 +97,7 @@ class MsgidTests(testing.TestBase): def test_encode(self): if six.PY2: - ids = [3, long(1), 0] + ids = [3, long(1), 0] # noqa elif six.PY3: ids = [3, 1, 0] msgids = ['5c693a50', '5c693a52', '5c693a53']