File: test_no_exception.py

package info (click to toggle)
python-friendly-traceback 0.7.62%2Bgit20240811.d7dbff6-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,264 kB
  • sloc: python: 21,500; makefile: 4
file content (7 lines) | stat: -rw-r--r-- 263 bytes parent folder | download
1
2
3
4
5
6
7
import friendly_traceback

def test_No_exception(capsys):
    if friendly_traceback.get_lang() == "en":
        friendly_traceback.explain_traceback()
        captured = capsys.readouterr()
        assert "Nothing to show: no exception recorded." in captured.out