mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21727)
This commit is contained in:
parent
604bba1f8f
commit
c7decc27d5
19 changed files with 58 additions and 46 deletions
|
|
@ -3,6 +3,7 @@ import marshal
|
|||
import os
|
||||
import sys
|
||||
from test import support
|
||||
from test.support import import_helper
|
||||
import types
|
||||
import unittest
|
||||
from unittest import mock
|
||||
|
|
@ -579,8 +580,8 @@ class InspectLoaderLoadModuleTests:
|
|||
module_name = 'blah'
|
||||
|
||||
def setUp(self):
|
||||
support.unload(self.module_name)
|
||||
self.addCleanup(support.unload, self.module_name)
|
||||
import_helper.unload(self.module_name)
|
||||
self.addCleanup(import_helper.unload, self.module_name)
|
||||
|
||||
def load(self, loader):
|
||||
spec = self.util.spec_from_loader(self.module_name, loader)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue