Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_imp.py @ 44567:cdc285bd0efb
Issue #1762972: Readded the reload() function as imp.reload()
| author | Christian Heimes <christian@cheimes.de> |
|---|---|
| date | Mon, 07 Jan 2008 17:13:09 +0000 |
| parents | 0067a6ab4854 |
| children | 7dd2c1746267 |
line wrap: on
line diff
--- a/Lib/test/test_imp.py Mon Jan 07 09:29:34 2008 +0000 +++ b/Lib/test/test_imp.py Mon Jan 07 17:13:09 2008 +0000 @@ -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(
