# Path: distgen/err.py
# def fatal(msg):
#     logging.fatal(msg)
#     sys.exit(1)


import pytest
import logging
from distgen.err import fatal



class TestFatal(object):
    def test_fatal(self, capsys, caplog):
        with pytest.raises(SystemExit) as e:

# Path: distgen/err.py
# def fatal(msg):
#     logging.fatal(msg)
#     sys.exit(1)


# Path: tests/unittests/test_error.py
import pytest
import logging
from distgen.err import fatal




class TestFatal(object):
    def test_fatal(self, capsys, caplog):
        with pytest.raises(SystemExit) as e:

            fatal('Message')