MCPcopy Index your code
hub / github.com/python/mypy / test_topsort_cycle

Method test_topsort_cycle

mypy/test/testgraph.py:74–79  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

72 assert_equal(res, [{b, c}, {a}])
73
74 def test_topsort_cycle(self) -> None:
75 a = frozenset({"A"})
76 b = frozenset({"B"})
77 data: dict[AbstractSet[str], set[AbstractSet[str]]] = {a: {b}, b: {a}}
78 with self.assertRaises(AssertionError):
79 list(topsort(data))
80
81 def test_scc(self) -> None:
82 vertices = {"A", "B", "C", "D"}

Callers

nothing calls this directly

Calls 3

topsortClass · 0.90
frozensetClass · 0.85
listClass · 0.85

Tested by

no test coverage detected