summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-26 18:57:33 +0200
committerRonny Pfannschmidt <Ronny.Pfannschmidt@gmx.de>2010-05-26 18:57:33 +0200
commit8f17127f14a401a76f372f20f2553e4bdfebc2a8 (patch)
treee1d6d597ae02b2206fdd216689e9aef7051ae607
parent3c2fbd57626d801ba3cb2c7dec3aeab0aaa69b60 (diff)
downloadsetuptools-scm-0.5.tar.gz
acceptance test the pkg-info reader, fixes #60.5
-rw-r--r--test_hgdistver.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/test_hgdistver.py b/test_hgdistver.py
index 7753bdc..aa07b19 100644
--- a/test_hgdistver.py
+++ b/test_hgdistver.py
@@ -143,3 +143,9 @@ def test_version_from_cachefile(tmpdir):
)
assert spv(tmpdir) == '1.0'
+
+
+def test_version_from_pkginfo(tmpdir):
+ write_base(tmpdir)
+ tmpdir.join('PKG-INFO').write('Version: 0.1')
+ assert spv(tmpdir) == '0.1'