Message384913
I have two files, named time.py and time_.py, with the same contents:
def foo():
"""Returns 1.
>>> foo()
1
"""
return 1
When I run
python3 -m doctest -v time_.py
I see the expected behaviour:
Trying:
foo()
Expecting:
1
ok
1 items had no tests:
time_
1 items passed all tests:
1 tests in time_.foo
1 tests in 2 items.
1 passed and 0 failed.
Test passed.
However, when I run
python3 -m doctest -v time_.py
it seems like doctest is testing the standard library 'time' module, while I expected it to have similar output as seen above:
30 items had no tests:
time
time.asctime
(... skipped 24 lines for the bug report ...)
time.time_ns
time.tzset
0 tests in 30 items.
0 passed and 0 failed.
Test passed.
The same happens when I provide a path with slashes in it. |
|
Date |
User |
Action |
Args |
2021-01-12 10:39:43 | stijnvandrongelen | set | recipients:
+ stijnvandrongelen |
2021-01-12 10:39:42 | stijnvandrongelen | set | messageid: <1610447982.97.0.137318779169.issue42906@roundup.psfhosted.org> |
2021-01-12 10:39:42 | stijnvandrongelen | link | issue42906 messages |
2021-01-12 10:39:42 | stijnvandrongelen | create | |
|