bpo-46111: Fix unittest tests in optimized mode (GH-30163)

This commit is contained in:
Serhiy Storchaka 2021-12-17 11:10:55 +02:00 committed by GitHub
parent 69ef1b5998
commit 95a922b3bb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View file

@ -58,9 +58,9 @@ class Test_TestProgram(unittest.TestCase):
class FooBar(unittest.TestCase):
def testPass(self):
assert True
pass
def testFail(self):
assert False
raise AssertionError
class FooBarLoader(unittest.TestLoader):
"""Test loader that returns a suite containing FooBar."""