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 — Running test_typing file directly fails · Issue #104036 · python/cpython

Running test_typing file directly fails #104036

New issue
Copy link
New issue
Copy link
Closed
Closed
Running test_typing file directly fails#104036
Copy link
Labels
testsTests in the Lib/test dirTests in the Lib/test dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@Eclips4
Eclips4
opened on May 1, 2023
Issue body actions
C:\Users\KIRILL-1\CLionProjects\cpython> ./python Lib/test/test_typing.py
Running Debug|x64 interpreter...
.............................F....................................................................................................
..........................................................................................................s.......................
..................................................................................................................................
..................................................................................................................................
.......................................................
======================================================================
FAIL: test_repr (__main__.AnyTests.test_repr)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\KIRILL-1\CLionProjects\cpython\Lib\test\test_typing.py", line 118, in test_repr
    self.assertEqual(
AssertionError: "<class '__main__.AnyTests.test_repr.<locals>.Sub'>" != "<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'
>"
- <class '__main__.AnyTests.test_repr.<locals>.Sub'>
?          ^^^  ^^
+ <class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>
?         +++++++++ ^^^  ^


----------------------------------------------------------------------
Ran 575 tests in 0.815s

FAILED (failures=1, skipped=1)

It's easy to fix, just need to replace "<class 'test.test_typing.AnyTests.test_repr.<locals>.Sub'>" to f"<class '{__name__}.AnyTests.test_repr.<locals>.Sub'>"
I'll soon send a PR

Linked PRs

  • gh-104036: Fix direct invocation of test_typing #104037
  • [3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) #104039

Activity

  1. Eclips4
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on May 1, 2023
  2. Eclips4
    added a commit that references this issue on May 1, 2023

    pythongh-104036: Fix direct invocation of est_typing

    63c09ba
  3. AlexWaygood
    added
    topic-typing
    on May 1, 2023
  4. AlexWaygood
    added a commit that references this issue on May 1, 2023

    gh-104036: Fix direct invocation of test_typing (#104037)

    4181d07
  5. miss-islington
    added a commit that references this issue on May 1, 2023

    pythongh-104036: Fix direct invocation of test_typing (pythonGH-104037)

    fc66752
  6. AlexWaygood
    added a commit that references this issue on May 1, 2023

    [3.11] gh-104036: Fix direct invocation of test_typing (GH-104037) (#…

    1be8bed
  7. AlexWaygood
    closed this as completedon May 1, 2023
  8. AlexWaygood
    added
    testsTests in the Lib/test dirTests in the Lib/test dir
    on May 1, 2023
  9. carljm
    added 2 commits that reference this issue on May 1, 2023

    Merge branch 'main' into supermon

    159b2aa

    Merge branch 'main' into inlinecomp2

    1274e2b
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 dirtopic-typingtype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    Projects

    No projects

      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.