micropython-lib/python-stdlib/unittest-discover
Jim Mussared 038b4ac657 unittest: Convert to a package.
This allows a much more natural way of implementing unitttest-discover:
 - unittest provides unittest/__init__.py
 - unittest-discover provides unittest/__main__.py

It also fixes an bug where unittest.py previously detected the presence of
unittest-discover.py by importing an checking for the ImportError. But that
could also be raised by a missing dependency. Now when you run
`micropython -m unittest` without unittest-discover, you get
`ImportError: no module named 'unittest.__main__'`, and without the
required deps, `ImportError: no module named 'argparse'`.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
2022-11-09 14:56:34 +11:00
..
tests unittest: Move back to python-stdlib. 2022-09-13 09:57:04 +10:00
unittest unittest: Convert to a package. 2022-11-09 14:56:34 +11:00
manifest.py unittest: Convert to a package. 2022-11-09 14:56:34 +11:00