mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Issue #17177: Stop using imp in a bunch of tests
This commit is contained in:
parent
8a2a902f88
commit
9529fbfd36
7 changed files with 17 additions and 15 deletions
|
@ -1,9 +1,9 @@
|
|||
# A test suite for pdb; not very comprehensive at the moment.
|
||||
|
||||
import doctest
|
||||
import imp
|
||||
import pdb
|
||||
import sys
|
||||
import types
|
||||
import unittest
|
||||
import subprocess
|
||||
import textwrap
|
||||
|
@ -464,7 +464,7 @@ def test_pdb_skip_modules():
|
|||
|
||||
|
||||
# Module for testing skipping of module that makes a callback
|
||||
mod = imp.new_module('module_to_skip')
|
||||
mod = types.ModuleType('module_to_skip')
|
||||
exec('def foo_pony(callback): x = 1; callback(); return None', mod.__dict__)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue