pep8: Fix hacking H232 warnings (octal)
Fix warnings "H232: Python 3.x incompatible octal 000001234 should be written as 0o1234". Change-Id: I9a7bbb034357783885ac3e18fe1e9e32a5951616
This commit is contained in:
parent
a19443de3b
commit
8aaacbf88d
@ -207,8 +207,8 @@ class TestReconcilerUtils(unittest.TestCase):
|
||||
self.assertEqual(got['account'], 'AUTH_bob')
|
||||
self.assertEqual(got['container'], 'con')
|
||||
self.assertEqual(got['obj'], 'obj')
|
||||
self.assertEqual(got['q_ts'], 0000001234.20190)
|
||||
self.assertEqual(got['q_record'], 0000001234.20192)
|
||||
self.assertEqual(got['q_ts'], 1234.20190)
|
||||
self.assertEqual(got['q_record'], 1234.20192)
|
||||
self.assertEqual(got['q_op'], 'PUT')
|
||||
|
||||
# negative test
|
||||
|
3
tox.ini
3
tox.ini
@ -59,7 +59,6 @@ commands = bandit -c bandit.yaml -r swift bin -n 5 -p gate
|
||||
# F812: list comprehension redefines ...
|
||||
# H101: Use TODO(NAME)
|
||||
# H202: assertRaises Exception too broad
|
||||
# H232: Python 3.x incompatible octal 000001234 should be written as 0o1234
|
||||
# H233: Python 3.x incompatible use of print operator
|
||||
# H234: assertEquals is deprecated, use assertEqual
|
||||
# H235: assert_ is deprecated, use assertTrue
|
||||
@ -72,6 +71,6 @@ commands = bandit -c bandit.yaml -r swift bin -n 5 -p gate
|
||||
# H501: Do not use self.__dict__ for string formatting
|
||||
# H702: Formatting operation should be outside of localization method call
|
||||
# H703: Multiple positional placeholders
|
||||
ignore = F402,F812,H101,H202,H232,H233,H234,H235,H301,H306,H401,H403,H404,H405,H501,H702,H703
|
||||
ignore = F402,F812,H101,H202,H233,H234,H235,H301,H306,H401,H403,H404,H405,H501,H702,H703
|
||||
exclude = .venv,.tox,dist,doc,*egg
|
||||
show-source = True
|
||||
|
Loading…
Reference in New Issue
Block a user