Jason R. Coombs <jar...@jaraco.com> added the comment:

I tried creating a test, but I'm struggling. I added [this 
patch](https://gist.github.com/e795a9a34594d202711aedf22c484af9), and tried to 
run it, but it's not being run.

```
$ ./python.exe Tools/scripts/run_tests.py 'test_doctest'
/Users/jaraco/Dropbox/code/public/cpython/python.exe -u -W default -bb -E -m 
test -r -w -j 0 -u all,-largefile,-audio,-gui test_doctest
Using random seed 3885464
Run tests in parallel using 6 child processes
0:00:00 load avg: 2.02 [1/1] test_doctest passed
1 test OK.

Total duration: 828 ms
Tests result: SUCCESS
```

I'm pretty sure doctest doesn't have any unit tests, but only functional tests 
exercising actual doctests.

I don't understand Python test framework enough to know how to create a 
discoverable unit test. I could use some help with how one could wire up the 
test_doctest module to run a unit test.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32991>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to