diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-01-23 12:52:05 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-01-23 12:52:05 (GMT) |
commit | 5ebe2c89fe47501db64e1a82ac6a3bcbd21f6e70 (patch) | |
tree | 4349ee5f31c2a33f32c904270a046585b24fde73 /Lib/test/test_dict.py | |
parent | 843a1fb1e78bf2d374daccaaa5c616f63afdf053 (diff) | |
download | cpython-5ebe2c89fe47501db64e1a82ac6a3bcbd21f6e70.zip cpython-5ebe2c89fe47501db64e1a82ac6a3bcbd21f6e70.tar.gz cpython-5ebe2c89fe47501db64e1a82ac6a3bcbd21f6e70.tar.bz2 |
Cleanup test_dict
* Write one import per line
* Sort imports by name
* Add an empty line: 2 empty lines between code blocks at the module level (PEP 8)
Diffstat (limited to 'Lib/test/test_dict.py')
-rw-r--r-- | Lib/test/test_dict.py | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Lib/test/test_dict.py b/Lib/test/test_dict.py index 3b42414..1049be5 100644 --- a/Lib/test/test_dict.py +++ b/Lib/test/test_dict.py @@ -1,10 +1,12 @@ -import unittest -from test import support - -import collections, random, string +import collections import collections.abc -import gc, weakref +import gc import pickle +import random +import string +import unittest +import weakref +from test import support class DictTest(unittest.TestCase): @@ -963,5 +965,6 @@ class Dict(dict): class SubclassMappingTests(mapping_tests.BasicTestMappingProtocol): type2test = Dict + if __name__ == "__main__": unittest.main() |