Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test_traceback.py
1 parent 2939ad0 commit cc573c7Copy full SHA for cc573c7
1 file changed
Lib/test/test_traceback.py
@@ -3124,10 +3124,13 @@ def test_smoke_user_exception(self):
3124
class MyException(Exception):
3125
pass
3126
3127
- self.do_test_smoke(
3128
- MyException('bad things happened'),
3129
- ('test.test_traceback.TestTracebackException.'
3130
- 'test_smoke_user_exception.<locals>.MyException'))
+ if __name__ == '__main__':
+ expected = ('TestTracebackException.'
+ 'test_smoke_user_exception.<locals>.MyException')
+ else:
3131
+ expected = ('test.test_traceback.TestTracebackException.'
3132
3133
+ self.do_test_smoke(MyException('bad things happened'), expected)
3134
3135
def test_from_exception(self):
3136
# Check all the parameters are accepted.
0 commit comments