diff --git a/src/Test/TestDebug.py b/src/Test/TestDebug.py index f65c13d9..f7708c78 100644 --- a/src/Test/TestDebug.py +++ b/src/Test/TestDebug.py @@ -46,7 +46,7 @@ class TestDebug: try: os.path.abspath(1) except: - assert Debug.formatException().startswith("TypeError: expected str, bytes or os.PathLike object, not int in TestDebug.py line 47 > line ") + assert "in TestDebug.py line 47 > line " in Debug.formatException() def testFormatStack(self):