MCPcopy Index your code
hub / github.com/tensorflow/datasets / _context_managers

Method _context_managers

tensorflow_datasets/testing/test_case.py:42–50  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

40
41 @classmethod
42 def _context_managers(cls):
43 context_managers = []
44 for fixture in setup_teardown.GLOBAL_FIXTURES:
45 if fixture in cls.DO_NOT_APPLY_FIXTURES:
46 continue
47 context_managers.append(contextlib.contextmanager(fixture)())
48 if test_utils.disable_gcs_access not in cls.DO_NOT_APPLY_FIXTURES:
49 context_managers.append(test_utils.disable_gcs_access())
50 return context_managers
51
52 @classmethod
53 def setUpClass(cls):

Callers

nothing calls this directly

Calls 1

contextmanagerMethod · 0.80

Tested by

no test coverage detected