##// END OF EJS Templates
warn on nonexistent exclusions
MinRK -
Show More
@@ -51,6 +51,7 b' from IPython.utils.importstring import import_item'
51 from IPython.utils.path import get_ipython_module_path
51 from IPython.utils.path import get_ipython_module_path
52 from IPython.utils.process import find_cmd, pycmd2argv
52 from IPython.utils.process import find_cmd, pycmd2argv
53 from IPython.utils.sysinfo import sys_info
53 from IPython.utils.sysinfo import sys_info
54 from IPython.utils.warn import warn
54
55
55 from IPython.testing import globalipapp
56 from IPython.testing import globalipapp
56 from IPython.testing.plugin.ipdoctest import IPythonDoctest
57 from IPython.testing.plugin.ipdoctest import IPythonDoctest
@@ -280,6 +281,11 b' def make_exclude():'
280 # This is needed for the reg-exp to match on win32 in the ipdoctest plugin.
281 # This is needed for the reg-exp to match on win32 in the ipdoctest plugin.
281 if sys.platform == 'win32':
282 if sys.platform == 'win32':
282 exclusions = [s.replace('\\','\\\\') for s in exclusions]
283 exclusions = [s.replace('\\','\\\\') for s in exclusions]
284
285 # check for any exclusions that don't seem to exist:
286 for exclusion in exclusions:
287 if not os.path.exists(exclusion) and not os.path.exists(exclusion + '.py'):
288 warn("Excluding nonexistent file: %r\n" % exclusion)
283
289
284 return exclusions
290 return exclusions
285
291
General Comments 0
You need to be logged in to leave comments. Login now