| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -770,12 +770,12 @@ def before_reload(): | |||
| 770 | 770 | sys.my_cls = TestNamespace.Before | |
| 771 | 771 | ||
| 772 | 772 | def after_reload(): | |
| 773 | + try: | ||
| 773 | 774 | bar = sys.my_cls() | |
| 774 | - | ||
| 775 | - # Don't crash! | ||
| 776 | - print(bar) | ||
| 777 | - print(bar.__str__()) | ||
| 778 | - print(bar.__repr__()) | ||
| 775 | + except TypeError: | ||
| 776 | + print('Caught expected exception') | ||
| 777 | + else: | ||
| 778 | + raise AssertionError('Failed to throw exception') | ||
| 779 | 779 | ", | |
| 780 | 780 | }, | |
| 781 | 781 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments