Skip to content

Commit

Permalink
remove tearDown
Browse files Browse the repository at this point in the history
  • Loading branch information
sunmy2019 committed May 7, 2023
1 parent ae45649 commit 6fd7fec
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions Lib/test/test_importlib/extension/test_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,12 +113,6 @@ def setUp(self):
self.loader = self.machinery.ExtensionFileLoader(
self.name, self.spec.origin)

def tearDown(self):
try:
del sys.modules[self.name]
except KeyError:
pass

def load_module(self):
with warnings.catch_warnings():
warnings.simplefilter("ignore", DeprecationWarning)
Expand Down Expand Up @@ -200,12 +194,6 @@ def setUp(self):
self.loader = self.machinery.ExtensionFileLoader(
self.name, self.spec.origin)

def tearDown(self):
try:
del sys.modules[self.name]
except KeyError:
pass

def load_module(self):
# Load the module from the test extension.
with warnings.catch_warnings():
Expand Down

0 comments on commit 6fd7fec

Please sign in to comment.