From: Victor Stinner Date: Fri, 19 Oct 2018 23:57:19 +0000 (+0200) Subject: bpo-34536: Cleanup test_enum imports (GH-9979) X-Git-Tag: v3.8.0a1~730 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4acf6c9d4be77b968fa498569d7a1545e5e77344;p=python bpo-34536: Cleanup test_enum imports (GH-9979) sys and threading were imported twice. --- diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index 216f7d5c28..572e8733f4 100644 --- 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: