Create tests for turtle module
turtle module has too few tests.
These are the module's public classes to review if there are test and/or implement them:
- [ ] RawTurtle
- [ ] ScrolledCanvas
- [ ] TNavigator
- [ ] TPen
- [ ] Tbuffer
- [ ] Terminator
- [ ] Turtle
- [ ] TurtleGraphicsError
- [ ] TurtleScreen
- [ ] TurtleScreenBase
- [ ] Vec2D
Some random notes:
- For those going to work on teleport, see https://github.com/python/cpython/pull/107807#pullrequestreview-1584010411
Here, go the module's functions:
- [ ] Screen
- [ ] config_dict
- [ ] demo1
- [ ] demo2
- [ ] getmethpartlist (WIP: https://github.com/python/cpython/pull/135533)
- [ ] read_docstrings
- [ ] readconfig
- [ ] switchpen
- [ ] write_docstringdict
Are you willing to work on this one? if so, I can assign you the issue
Hi @picnixz @adorilson Can I help you with this?
Your help is welcome! Let's first test the RawTurtle class.
Are you willing to work on this one? if so, I can assign you the issue
Yes, I do. However, I prefer not to be assigned, as I'm unsure when I might be available to do this.
I realized that python -m test doesn't run doctest against the turtle module.
Is there some reason for that? Or was it just forgotten?
Doesn't it need -ugui resource? if this still doesn't run the doctests, then maybe it's a more general issue where we don't run doctests in the code at all.
Doesn't it need
-uguiresource?
Doens't work.
if this still doesn't run the doctests, then maybe it's a more general issue where we don't run doctests in the code at all.
I found it working for the enum module, for instance.