mirror of
https://github.com/jupyter/notebook.git
synced 2025-04-24 14:20:54 +08:00
Allow 'iptest IPython.lib' as well as 'iptest lib'
This commit is contained in:
parent
296eecde56
commit
860da5d81a
@ -368,11 +368,14 @@ def run_iptest():
|
||||
warnings.filterwarnings('ignore',
|
||||
'This will be removed soon. Use IPython.testing.util instead')
|
||||
|
||||
if sys.argv[1] in test_sections:
|
||||
section = test_sections[sys.argv[1]]
|
||||
arg1 = sys.argv[1]
|
||||
if arg1 in test_sections:
|
||||
section = test_sections[arg1]
|
||||
sys.argv[1:2] = section.includes
|
||||
elif arg1.startswith('IPython.') and arg1[8:] in test_sections:
|
||||
section = test_sections[arg1[8:]]
|
||||
sys.argv[1:2] = section.includes
|
||||
else:
|
||||
arg1 = sys.argv[1]
|
||||
section = TestSection(arg1, includes=[arg1])
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user