GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Return the correct exit code if all tests have been skipped in `unittest` · Issue #106584 · python/cpython Closed Labels 3.12only security fixesonly security fixes3.13only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error DescriptionBug reportIn Python 3.12, a new exit code ( Code example 1: import unittest class TestSimple(unittest.TestCase): @classmethod def setUpClass(cls): raise unittest.SkipTest("Skip whole Case") def test_true(self): self.assertTrue(True) def test_false(self): self.assertTrue(False, msg="Is not True") Output: Ok, we get exit code 5 here. Code example 2: import unittest class TestCase(unittest.TestCase): @unittest.skip("something") def test(self): self.assertTrue(False) Output: Here we can see output Your environment
Linked PRsActivity
MetadataMetadataAssigneesLabels3.12only security fixesonly security fixes3.13only security fixesonly security fixesstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error Projects
MilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |