GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create tests for turtle module · Issue #135272 · python/cpython

Create tests for turtle module #135272

New issue
Copy link
New issue
Copy link
Open
#138877
Open
Create tests for turtle module#135272
#138877
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

Description

@adorilson
adorilson
opened on Jun 8, 2025
Issue body actions

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
    • dot (see gh-138772: Add tests for Turtle.dot signature #138773)
  • TurtleGraphicsError
  • TurtleScreen
  • TurtleScreenBase
  • Vec2D

Some random notes:

  1. For those going to work on teleport, see gh-107805: Fix signatures of module-level generated functions in turtle #107807 (review)

Here, go the module's functions:

  • Screen
  • config_dict
  • demo1
  • demo2
  • getmethpartlist (WIP: [WIP, do not merge] add TestGetmethparlist test to getmethparlist #135533)
  • read_docstrings
  • readconfig
  • switchpen
  • write_docstringdict

Linked PRs

  • gh-135272: Activate doctests on turtle module #138877

Activity

  1. picnixz
    added
    type-featureA feature request or enhancementA feature request or enhancement
    testsTests in the Lib/test dirTests in the Lib/test dir
    on Jun 8, 2025
  2. picnixz
    added this to Turtle issues 🐢on Jun 13, 2025
  3. picnixz commented on Jun 13, 2025

    @picnixz
    picnixz
    on Jun 13, 2025
    Member
    More actions

    Are you willing to work on this one? if so, I can assign you the issue

  4. mingdaoy commented on Jun 15, 2025

    @mingdaoy
    mingdaoy
    on Jun 15, 2025
    More actions

    Hi @picnixz @adorilson
    Can I help you with this?

  5. picnixz commented on Jun 15, 2025

    @picnixz
    picnixz
    on Jun 15, 2025
    Member
    More actions

    Your help is welcome! Let's first test the RawTurtle class.

    Reacted by mingdaoy
  6. adorilson commented on Jun 28, 2025

    @adorilson
    adorilson
    on Jun 28, 2025
    ContributorAuthor
    More actions

    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.

    Reacted by Bénédikt Tran
  7. adorilson commented on Sep 11, 2025

    @adorilson
    adorilson
    on Sep 11, 2025
    ContributorAuthor
    More actions

    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?

  8. picnixz commented on Sep 11, 2025

    @picnixz
    picnixz
    on Sep 11, 2025
    Member
    More actions

    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.

  9. adorilson commented on Sep 12, 2025

    @adorilson
    adorilson
    on Sep 12, 2025
    ContributorAuthor
    More actions

    Doesn't it need -ugui resource?

    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.

  10. adorilson
    added a commit that references this issue on Sep 13, 2025

    pythongh-135272: Activate doctests on turtle module

    613a899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    testsTests in the Lib/test dirTests in the Lib/test dirtype-featureA feature request or enhancementA feature request or enhancement

    Projects

    • Turtle issues 🐢
      Status
      No status
      Show more project fields

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.