MCPcopy Index your code
hub / github.com/python/cpython / DummyFraction

Class DummyFraction

Lib/test/test_fractions.py:87–88  ·  view source on GitHub ↗

Dummy Fraction subclass for copy and deepcopy testing.

Source from the content-addressed store, hash-verified

85 assert False, "__float__ should not be invoked"
86
87class DummyFraction(fractions.Fraction):
88 """Dummy Fraction subclass for copy and deepcopy testing."""
89
90
91def _components(r):

Callers 5

testFromNumberMethod · 0.85
testMixedDivisionMethod · 0.85

Calls

no outgoing calls

Tested by 5

testFromNumberMethod · 0.68
testMixedDivisionMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…