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

Method test_no_tests_ran_skip

Lib/test/test_regrtest.py:1792–1804  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1790 stats=0, filtered=True)
1791
1792 def test_no_tests_ran_skip(self):
1793 code = textwrap.dedent("""
1794 import unittest
1795
1796 class Tests(unittest.TestCase):
1797 def test_skipped(self):
1798 self.skipTest("because")
1799 """)
1800 testname = self.create_test(code=code)
1801
1802 output = self.run_tests(testname)
1803 self.check_executed_tests(output, [testname],
1804 stats=TestStats(1, skipped=1))
1805
1806 def test_no_tests_ran_multiple_tests_nonexistent(self):
1807 code = textwrap.dedent("""

Callers

nothing calls this directly

Calls 5

run_testsMethod · 0.95
TestStatsClass · 0.90
create_testMethod · 0.80
check_executed_testsMethod · 0.80
dedentMethod · 0.45

Tested by

no test coverage detected