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

Class TestMixedFloatFunction

Lib/test/test_enum.py:1243–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1241
1242
1243class TestMixedFloatFunction(_EnumTests, _MixedOutputTests, unittest.TestCase):
1244 #
1245 values = [1.1, 2.2, 3.3]
1246 #
1247 def _generate_next_value_(name, start, count, last_values):
1248 values = [1.1, 2.2, 3.3]
1249 return values[count]
1250 #
1251 enum_type = Enum('enum_type', {'_generate_next_value_':_generate_next_value_}, type=float)
1252
1253
1254class TestMinimalFloatClass(_EnumTests, _MinimalOutputTests, unittest.TestCase):

Callers

nothing calls this directly

Calls 1

EnumClass · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…