diff options
author | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2015-10-22 16:39:08 +0100 |
---|---|---|
committer | Matthias C. M. Troffaes <matthias.troffaes@gmail.com> | 2015-10-22 16:39:08 +0100 |
commit | 27f0b6481675fcc07ec2ce09acbd2bd1ac8cf197 (patch) | |
tree | dc2af81e6036c32a0ae9a3a64d2da5a9e88367d3 /testing | |
parent | 81a0e747b1bd01b12c6fdd7ac784f6f8b0084047 (diff) | |
download | setuptools-scm-27f0b6481675fcc07ec2ce09acbd2bd1ac8cf197.tar.gz |
Test 'python -m setuptools_scm' invocation (__main__.py).
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_main.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/test_main.py b/testing/test_main.py new file mode 100644 index 0000000..089f6db --- /dev/null +++ b/testing/test_main.py @@ -0,0 +1,7 @@ +import os.path + +mainfile = os.path.join( + os.path.dirname(__file__), "..", "setuptools_scm", "__main__.py") +with open(mainfile) as f: + code = compile(f.read(), "__main__.py", 'exec') + exec(code) |