Issue #1762972: Readded the reload() function as imp.reload()

This commit is contained in:
Christian Heimes 2008-01-07 17:13:09 +00:00
parent 8de8e03849
commit 13a7a21258
3 changed files with 60 additions and 0 deletions

View file

@ -60,6 +60,14 @@ class ImportTests(unittest.TestCase):
'"""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(