summaryrefslogtreecommitdiff
path: root/Lib/test/test_pdb.py
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-06-15 17:11:25 -0400
committerBrett Cannon <brett@python.org>2013-06-15 17:11:25 -0400
commit9529fbfd363959ee4e33baeebcc6c3bc0252b42c (patch)
treedd983d37097a74680b5037f287dc83aa9391bd36 /Lib/test/test_pdb.py
parent8a2a902f88ce2ab8d0e27a189a65e71aed6dd670 (diff)
downloadcpython-git-9529fbfd363959ee4e33baeebcc6c3bc0252b42c.tar.gz
Issue #17177: Stop using imp in a bunch of tests
Diffstat (limited to 'Lib/test/test_pdb.py')
-rw-r--r--Lib/test/test_pdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_pdb.py b/Lib/test/test_pdb.py
index 03084e4d12..0babaa01a0 100644
--- a/Lib/test/test_pdb.py
+++ b/Lib/test/test_pdb.py
@@ -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__)