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 <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2018-06-06 18:53:44 -04:00
parent a432e30b87
commit a39833585c
1 changed files with 1 additions and 1 deletions

View File

@ -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']