Issue #17177: Stop using imp in a bunch of tests

This commit is contained in:
Brett Cannon 2013-06-15 17:11:25 -04:00
parent 8a2a902f88
commit 9529fbfd36
7 changed files with 17 additions and 15 deletions

View file

@ -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__)