##// END OF EJS Templates
Fix imports in test suite.
Fernando Perez -
Show More
@@ -230,8 +230,8 def make_exclude():
230 230 # files for web serving. Occasionally projects may put a .py
231 231 # file in there (MathJax ships a conf.py), so we might as
232 232 # well play it safe and skip the whole thing.
233 ipjoin('frontend', 'html', 'notebook', 'static'),
234 ipjoin('frontend', 'html', 'notebook', 'fabfile'),
233 ipjoin('html', 'notebook', 'static'),
234 ipjoin('html', 'notebook', 'fabfile'),
235 235 ]
236 236 if not have['sqlite3']:
237 237 exclusions.append(ipjoin('core', 'tests', 'test_history'))
@@ -261,18 +261,18 def make_exclude():
261 261 if not have['pexpect']:
262 262 exclusions.extend([ipjoin('lib', 'irunner'),
263 263 ipjoin('lib', 'tests', 'test_irunner'),
264 ipjoin('frontend', 'terminal', 'console'),
264 ipjoin('terminal', 'console'),
265 265 ])
266 266
267 267 if not have['zmq']:
268 268 exclusions.append(ipjoin('kernel'))
269 exclusions.append(ipjoin('frontend', 'qt'))
270 exclusions.append(ipjoin('frontend', 'html'))
271 exclusions.append(ipjoin('frontend', 'consoleapp.py'))
272 exclusions.append(ipjoin('frontend', 'terminal', 'console'))
269 exclusions.append(ipjoin('qt'))
270 exclusions.append(ipjoin('html'))
271 exclusions.append(ipjoin('consoleapp.py'))
272 exclusions.append(ipjoin('terminal', 'console'))
273 273 exclusions.append(ipjoin('parallel'))
274 274 elif not have['qt'] or not have['pygments']:
275 exclusions.append(ipjoin('frontend', 'qt'))
275 exclusions.append(ipjoin('qt'))
276 276
277 277 if not have['pymongo']:
278 278 exclusions.append(ipjoin('parallel', 'controller', 'mongodb'))
@@ -293,17 +293,17 def make_exclude():
293 293 exclusions.extend([ipjoin('extensions', 'tests', 'test_octavemagic')])
294 294
295 295 if not have['tornado']:
296 exclusions.append(ipjoin('frontend', 'html'))
296 exclusions.append(ipjoin('html'))
297 297
298 298 if not have['jinja2']:
299 exclusions.append(ipjoin('frontend', 'html', 'notebook', 'notebookapp'))
299 exclusions.append(ipjoin('html', 'notebook', 'notebookapp'))
300 300
301 301 if not have['rpy2'] or not have['numpy']:
302 302 exclusions.append(ipjoin('extensions', 'rmagic'))
303 303 exclusions.append(ipjoin('extensions', 'tests', 'test_rmagic'))
304 304
305 305 if not have['azure']:
306 exclusions.append(ipjoin('frontend', 'html', 'notebook', 'services', 'notebooks', 'azurenbmanager'))
306 exclusions.append(ipjoin('html', 'notebook', 'services', 'notebooks', 'azurenbmanager'))
307 307
308 308 # This is needed for the reg-exp to match on win32 in the ipdoctest plugin.
309 309 if sys.platform == 'win32':
@@ -429,14 +429,21 class IPTester(object):
429 429 # The process did not die...
430 430 print('... failed. Manual cleanup may be required.')
431 431
432
432 433 def make_runners(inc_slow=False):
433 434 """Define the top-level packages that need to be tested.
434 435 """
435 436
436 437 # Packages to be tested via nose, that only depend on the stdlib
437 nose_pkg_names = ['config', 'core', 'extensions', 'frontend', 'lib',
438 nose_pkg_names = ['config', 'core', 'extensions', 'lib', 'terminal',
438 439 'testing', 'utils', 'nbformat' ]
439 440
441 if have['qt']:
442 nose_pkg_names.append('qt')
443
444 if have['tornado']:
445 nose_pkg_names.append('html')
446
440 447 if have['zmq']:
441 448 nose_pkg_names.append('kernel')
442 449 nose_pkg_names.append('kernel.inprocess')
General Comments 0
You need to be logged in to leave comments. Login now