summaryrefslogtreecommitdiff
path: root/Lib/test/test_hotshot.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2010-01-30 07:22:54 +0000
committerEzio Melotti <ezio.melotti@gmail.com>2010-01-30 07:22:54 +0000
commita2d465374099c582ef9bc042c2fe1be4776ee641 (patch)
treef1740160c63e081382daea49b1dee4a1eb9b8433 /Lib/test/test_hotshot.py
parent75d3fb1ebb13b143b2840b761b736237bf48f714 (diff)
downloadcpython-git-a2d465374099c582ef9bc042c2fe1be4776ee641.tar.gz
#7092: silence py3k warnings for deprecated modules
Diffstat (limited to 'Lib/test/test_hotshot.py')
-rw-r--r--Lib/test/test_hotshot.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py
index 38a8dddb6a..c6dae363cd 100644
--- a/Lib/test/test_hotshot.py
+++ b/Lib/test/test_hotshot.py
@@ -1,5 +1,3 @@
-import hotshot
-import hotshot.log
import os
import pprint
import unittest
@@ -9,6 +7,8 @@ import gc
from test import test_support
+# Silence Py3k warning
+hotshot = test_support.import_module('hotshot', deprecated=True)
from hotshot.log import ENTER, EXIT, LINE