commit | 13a7a21258f0cd241c2cf1367a954d6742daa2a6 | [log] [tgz] |
---|---|---|
author | Christian Heimes <christian@cheimes.de> | Mon Jan 07 17:13:09 2008 +0000 |
committer | Christian Heimes <christian@cheimes.de> | Mon Jan 07 17:13:09 2008 +0000 |
tree | 4c49495d5dfb4b591d2a93e9f2567b4f2ba70f49 | |
parent | 8de8e03849ecbb08da6deb4679d08c0206b71316 [diff] [blame] |
Issue #1762972: Readded the reload() function as imp.reload()
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 268a4b7..3b0a13d 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py
@@ -60,6 +60,14 @@ '"""Tokenization help for Python programs.\n') fp.close() + def test_reload(self): + import marshal + imp.reload(marshal) + import string + imp.reload(string) + ## import sys + ## self.assertRaises(ImportError, reload, sys) + def test_main(): test_support.run_unittest(