Skip to content

Commit 5d3a44c

Browse files
pfalconpi-anl
authored andcommitted
unittest: TestCase: Add (dummy) __init__.
Mostly to workaround inherited MicroPython's issues with inheritance. Signed-off-by: Paul Sokolovsky <[email protected]>
1 parent f09d2ec commit 5d3a44c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python-stdlib/unittest/unittest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ def __exit__(self, exc_type, exc_value, tb):
3030

3131

3232
class TestCase:
33+
def __init__(self):
34+
pass
35+
3336
def fail(self, msg=""):
3437
assert False, msg
3538

0 commit comments

Comments
 (0)