mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-46111: Fix unittest tests in optimized mode (GH-30163)
(cherry picked from commit 95a922b3bb)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
212014d8c4
commit
72225b5bdf
3 changed files with 6 additions and 3 deletions
|
|
@ -58,9 +58,9 @@ def removeTest():
|
|||
|
||||
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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue