mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Issue #1762972: Readded the reload() function as imp.reload()
This commit is contained in:
parent
8de8e03849
commit
13a7a21258
3 changed files with 60 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue