[New-bugs-announce] [issue46421] unittest ValueError when invoking as module
Bader Zaidan
report at bugs.python.org
Mon Jan 17 18:35:02 EST 2022
New submission from Bader Zaidan <github at zaidan.pw>:
When running a local unittest as a module (for example, `python -m unittest ./tests/*.py`), the command fails with a ValueError. However, if we remove the local directory definition, and call it as `python -m unittest tests/*.py`, it runs without issue.
A GitHub pull request with a pull request will be sent promptly.
----------
components: Library (Lib)
messages: 410833
nosy: BaderSZ
priority: normal
severity: normal
status: open
title: unittest ValueError when invoking as module
versions: Python 3.10
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue46421>
_______________________________________
More information about the New-bugs-announce
mailing list