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.
1 parent 84db670 commit 56fafe3Copy full SHA for 56fafe3
1 file changed
tests/domain_tests/TestRunner.cs
@@ -770,12 +770,12 @@ def before_reload():
770
sys.my_cls = TestNamespace.Before
771
772
def after_reload():
773
+ try:
774
bar = sys.my_cls()
-
775
- # Don't crash!
776
- print(bar)
777
- print(bar.__str__())
778
- print(bar.__repr__())
+ except TypeError:
+ print('Caught expected exception')
+ else:
+ raise AssertionError('Failed to throw exception')
779
",
780
},
781
0 commit comments