Skip to content

Test failures under Python 3.13 #105

Description

@mdickinson

Under Python 3.13.0a6 we get the following test failures:

======================================================================
FAIL: test_analyze_simple_cycle (refcycle.test.test_object_graph.TestObjectGraph.test_analyze_simple_cycle)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mdickinson/Repositories/mdickinson/refcycle/src/refcycle/test/test_object_graph.py", line 406, in test_analyze_simple_cycle
    self.assertEqual(len(sccs), 1)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
AssertionError: 3 != 1

======================================================================
FAIL: test_cycles_created_by (refcycle.test.test_refcycle.TestRefcycle.test_cycles_created_by)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/mdickinson/Repositories/mdickinson/refcycle/src/refcycle/test/test_refcycle.py", line 56, in test_cycles_created_by
    self.assertEqual(len(object_graph), 4)
    ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^
AssertionError: 2 != 4

These appear to be the result of logic for dematerialization/rematerialization of instance dicts; see for example python/cpython#106539.

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions