summaryrefslogtreecommitdiff
path: root/testing/test_main.py
blob: 97ea05e008e85be37c06a44c2ef3474f247c43fe (plain)
1
2
3
4
5
6
7
8
9
10
import os.path


def test_main():
    mainfile = os.path.join(
        os.path.dirname(__file__), "..", "src", "setuptools_scm", "__main__.py"
    )
    with open(mainfile) as f:
        code = compile(f.read(), "__main__.py", "exec")
        exec(code)