Skip to content

test_types fails under coverage #102719

Closed as not planned
Closed as not planned
@sobolevn

Description

@sobolevn

Right now running this command:

coverage run --pylib --branch --source=typing -m test -v test_types

Results in this test failure:

======================================================================
FAIL: test_or_type_operator_reference_cycle (test.test_types.UnionTests.test_or_type_operator_reference_cycle)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/sobolev/Desktop/cpython/Lib/test/test_types.py", line 998, in test_or_type_operator_reference_cycle
    self.assertLessEqual(sys.gettotalrefcount() - before, leeway,
AssertionError: 608 not less than or equal to 15 : Check for union reference leak.

----------------------------------------------------------------------
Ran 112 tests in 0.414s

FAILED (failures=1)
test test_types failed
test_types failed (1 failure)

I am not sure right now what to do with it:

  • Disable during coverage
  • Fix it not to fail
  • Investigate if this is a real bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtestsTests in the Lib/test dirtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions