New submission from Bader Zaidan <git...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue46421>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to