[Python-checkins] bpo-34536: Cleanup test_enum imports (GH-9979)

Ethan Furman webhook-mailer at python.org
Fri Oct 19 19:57:22 EDT 2018


https://github.com/python/cpython/commit/4acf6c9d4be77b968fa498569d7a1545e5e77344
commit: 4acf6c9d4be77b968fa498569d7a1545e5e77344
branch: master
author: Victor Stinner <vstinner at redhat.com>
committer: Ethan Furman <ethan at stoneleaf.us>
date: 2018-10-19T16:57:19-07:00
summary:

bpo-34536: Cleanup test_enum imports (GH-9979)

sys and threading were imported twice.

files:
M Lib/test/test_enum.py

diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py
index 216f7d5c2830..572e8733f45b 100644
--- a/Lib/test/test_enum.py
+++ b/Lib/test/test_enum.py
@@ -3,7 +3,6 @@
 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 test import support
 from datetime import timedelta
 
-try:
-    import threading
-except ImportError:
-    threading = None
 
 # for pickle tests
 try:



More information about the Python-checkins mailing list