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

Method call

Lib/test/test_zoneinfo/test_zoneinfo.py:1238–1247  ·  view source on GitHub ↗

Decorator to call the addition methods. This will call a function which adds at least one new entry into the `cases` dictionary. The decorator will also assert that something was added to the dictionary.

(f)

Source from the content-addressed store, hash-verified

1236 # The decorator for calling is used to make it more obvious that each
1237 # function is actually called (if it's not decorated, it's not called).
1238 def call(f):
1239 """Decorator to call the addition methods.
1240
1241 This will call a function which adds at least one new entry into
1242 the `cases` dictionary. The decorator will also assert that
1243 something was added to the dictionary.
1244 """
1245 prev_len = len(cases)
1246 f()
1247 assert len(cases) > prev_len, "Function did not add a test case!"
1248
1249 NORMAL = cls.NORMAL
1250 FOLD = cls.FOLD

Callers 12

test_grid_anchorMethod · 0.45
test_afterMethod · 0.45
test_after_idleMethod · 0.45
test_after_cancelMethod · 0.45
_info_commandsFunction · 0.45
scalingMethod · 0.45
test_configure_bitmapMethod · 0.45
setUpModuleFunction · 0.45
info_existsMethod · 0.45
test_null_dlsymMethod · 0.45
write_windows_consoleMethod · 0.45

Calls 1

fFunction · 0.50

Tested by

no test coverage detected