[Lldb-commits] [PATCH] D20193: test infra: catch bad decorators and import-time errors

Zachary Turner via lldb-commits lldb-commits at lists.llvm.org
Fri May 13 11:42:54 PDT 2016


zturner added a comment.

D:\src\llvm\tools\lldb\packages\Python\lldbsuite\test_event>c:\Python35\python.exe
-m unittest discover -s test/src -p "Test*.py"
Traceback (most recent call last):

  File "c:\Python35\lib\runpy.py", line 170, in _run_module_as_main
    "__main__", mod_spec)
  File "c:\Python35\lib\runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "c:\Python35\lib\unittest\__main__.py", line 18, in <module>
    main(module=None)
  File "c:\Python35\lib\unittest\main.py", line 93, in __init__
    self.parseArgs(argv)
  File "c:\Python35\lib\unittest\main.py", line 117, in parseArgs
    self._do_discovery(argv[2:])
  File "c:\Python35\lib\unittest\main.py", line 228, in _do_discovery
    self.test = loader.discover(self.start, self.pattern, self.top)
  File "c:\Python35\lib\unittest\loader.py", line 338, in discover
    raise ImportError('Start directory is not importable: %r' % start_dir)

ImportError: Start directory is not importable: 'test/src'

This directory named "src" doesn't exist.  Am I missing something?


http://reviews.llvm.org/D20193





More information about the lldb-commits mailing list