diff options
author | Ihar Hrachyshka <ihrachys@redhat.com> | 2014-06-20 22:13:38 +0200 |
---|---|---|
committer | Ihar Hrachyshka <ihrachys@redhat.com> | 2014-06-20 22:13:38 +0200 |
commit | 56336df6e1556555af8b83daf528e292cf19be7d (patch) | |
tree | 5f9242831afabe420c3b1646f347ba233cf0ac8a | |
parent | 547453cac816e0821bbf69f7e40fd9dbad0af6e3 (diff) | |
download | oslo-serialization-56336df6e1556555af8b83daf528e292cf19be7d.tar.gz |
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
-rw-r--r-- | tests/unit/test_jsonutils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/unit/test_jsonutils.py b/tests/unit/test_jsonutils.py index 208c284..3105a69 100644 --- a/tests/unit/test_jsonutils.py +++ b/tests/unit/test_jsonutils.py @@ -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>') |