pep8: fixed multiple violations
Fixed violations: * E128 continuation line under-indented for visual indent * E251 unexpected spaces around keyword / parameter equals * E265 block comment should start with '# ' * E713 test for membership should be 'not in' * F402 import shadowed by loop variable * H305 imports not grouped correctly * H307 like imports should be grouped together' * H402 one line docstring needs punctuation' * H703 Multiple positional placeholders Also enabled H803 check that didn't have any violations. Change-Id: I957ab273ddc61b02763d6b60b21d11ed4e73d472
This commit is contained in:
parent
547453cac8
commit
56336df6e1
@ -195,9 +195,9 @@ class ToPrimitiveTestCase(test_base.BaseTestCase):
|
||||
self.assertEqual(len(ret), 3)
|
||||
self.assertTrue(ret[0].startswith(u"<module 'datetime' from "))
|
||||
if six.PY3:
|
||||
self.assertTrue(ret[1].startswith('<function '
|
||||
'ToPrimitiveTestCase.test_nasties.<locals>.foo '
|
||||
'at 0x'))
|
||||
self.assertTrue(ret[1].startswith(
|
||||
'<function ToPrimitiveTestCase.test_nasties.<locals>.foo at 0x'
|
||||
))
|
||||
else:
|
||||
self.assertTrue(ret[1].startswith('<function foo at 0x'))
|
||||
self.assertEqual(ret[2], '<built-in function dir>')
|
||||
|
Loading…
x
Reference in New Issue
Block a user