projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ded87d8
)
bpo-34536: Cleanup test_enum imports (GH-9979)
author
Victor Stinner
<vstinner@redhat.com>
Fri, 19 Oct 2018 23:57:19 +0000
(
01:57
+0200)
committer
Ethan Furman
<ethan@stoneleaf.us>
Fri, 19 Oct 2018 23:57:19 +0000
(16:57 -0700)
sys and threading were imported twice.
Lib/test/test_enum.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_enum.py
b/Lib/test/test_enum.py
index 216f7d5c2830da3cbfb4de4dc647022ff66c008f..572e8733f45b86258a1cf76f7a0c9132ca2f3c20 100644
(file)
--- a/
Lib/test/test_enum.py
+++ b/
Lib/test/test_enum.py
@@
-3,7
+3,6
@@
import inspect
import pydoc
import sys
import unittest
-import sys
import threading
from collections import OrderedDict
from enum import Enum, IntEnum, EnumMeta, Flag, IntFlag, unique, auto
@@
-12,10
+11,6
@@
from pickle import dumps, loads, PicklingError, HIGHEST_PROTOCOL
from test import support
from datetime import timedelta
-try:
- import threading
-except ImportError:
- threading = None
# for pickle tests
try: