From 93595854ad564a6fd44009e577b28887238da985 2013-09-19 22:21:13 From: Thomas Kluyver Date: 2013-09-19 22:21:13 Subject: [PATCH] Allow 'iptest IPython.lib' as well as 'iptest lib' --- diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index c352788..1b12539 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -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])