From 767fac8186ea4541f4466ac9a55c03abea6a878b Mon Sep 17 00:00:00 2001 From: Christian Schwede Date: Mon, 12 Oct 2015 07:09:00 +0000 Subject: [PATCH] Enable H234 check (assertEquals is deprecated, use assertEqual) All usages of assertEquals and assertNotEquals are fixed now, so let's enable the H234 check to avoid regressions in the future. Change-Id: I2c2ccb3b268cf9eb11f2db045378ab125a02bc31 --- tox.ini | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tox.ini b/tox.ini index e16056cc66..3205461cba 100644 --- a/tox.ini +++ b/tox.ini @@ -59,7 +59,6 @@ commands = bandit -c bandit.yaml -r swift bin -n 5 -p gate # H101: Use TODO(NAME) # H202: assertRaises Exception too broad # H233: Python 3.x incompatible use of print operator -# H234: assertEquals is deprecated, use assertEqual # H301: one import per line # H306: imports not in alphabetical order (time, os) # H401: docstring should not start with a space @@ -68,6 +67,6 @@ commands = bandit -c bandit.yaml -r swift bin -n 5 -p gate # H405: multi line docstring summary not separated with an empty line # H501: Do not use self.__dict__ for string formatting # H703: Multiple positional placeholders -ignore = F812,H101,H202,H233,H234,H301,H306,H401,H403,H404,H405,H501,H703 +ignore = F812,H101,H202,H233,H301,H306,H401,H403,H404,H405,H501,H703 exclude = .venv,.tox,dist,doc,*egg show-source = True