Gitlab will migrate to a new storage backend starting 0300 UTC on 2020-04-04. We do not anticipate a maintenance window for this migration. Performance may be impacted over the weekend. Thanks for your patience.

Commit 99277e0f authored by Branson Stephens's avatar Branson Stephens

Fixed git tag test to work in local dir.

parent 45698789
...@@ -270,11 +270,14 @@ class TestGracedb(unittest.TestCase): ...@@ -270,11 +270,14 @@ class TestGracedb(unittest.TestCase):
def test_gittag(self): def test_gittag(self):
# try to make sure GIT_TAG is set properly. # try to make sure GIT_TAG is set properly.
import errno import errno
version = "1.15" version = "1.16"
try: try:
# If we are in the source dir (setup.py is available) # If we are in the source dir (setup.py is available)
# make sure the version above agrees. # make sure the version above agrees.
setup_file = open("setup.py", 'r') if os.path.exists("setup.py"):
setup_file = open("setup.py", 'r')
else:
setup_file = open("../../../setup.py", 'r')
v = "" v = ""
for line in setup_file: for line in setup_file:
if line.startswith("version"): if line.startswith("version"):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment