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

Method _iter_close_tests

Lib/test/test__interpchannels.py:1789–1808  ·  view source on GitHub ↗
(self, verbose=False)

Source from the content-addressed store, hash-verified

1787 self._assert_closed_in_interp(fix, interp)
1788
1789 def _iter_close_tests(self, verbose=False):
1790 i = 0
1791 for actions in self.iter_action_sets():
1792 print()
1793 for fix in self.iter_fixtures():
1794 i += 1
1795 if i > 1000:
1796 return
1797 if verbose:
1798 if (i - 1) % 6 == 0:
1799 print()
1800 print(i, fix, '({} actions)'.format(len(actions)))
1801 else:
1802 if (i - 1) % 6 == 0:
1803 print(' ', end='')
1804 print('.', end=''); sys.stdout.flush()
1805 yield i, fix, actions
1806 if verbose:
1807 print('---')
1808 print()
1809
1810 # This is useful for scanning through the possible tests.
1811 def _skim_close_tests(self):

Callers 3

_skim_close_testsMethod · 0.95
test_closeMethod · 0.95
test_force_closeMethod · 0.95

Calls 4

iter_action_setsMethod · 0.95
iter_fixturesMethod · 0.95
formatMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected