Fixing - Issue7026 - RuntimeError: dictionary changed size during iteration. Patch by flox
diff --git a/Lib/test/test_hotshot.py b/Lib/test/test_hotshot.py
index 38a8ddd..c6dae36 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 @@
from test import test_support
+# Silence Py3k warning
+hotshot = test_support.import_module('hotshot', deprecated=True)
from hotshot.log import ENTER, EXIT, LINE