Merge "Fix a hacking test" into stable/ussuri

This commit is contained in:
Zuul 2020-12-19 08:18:18 +00:00 committed by Gerrit Code Review
commit 2214fc0dd1
1 changed files with 1 additions and 1 deletions

View File

@ -1003,7 +1003,7 @@ class HackingTestCase(test.NoDBTestCase):
expected_errors=errors, filename="nova/tests/unit/test_context.py")
# Check no errors in other than 'nova/tests' directory.
self._assert_has_no_errors(
code, checks.nonexistent_assertion_methods_and_attributes,
code, checks.useless_assertion,
filename="nova/compute/api.py")
code = """
self.assertIsNone(None_test_var, "Fails")