We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5734d2a commit 2252d38Copy full SHA for 2252d38
src/sage/interfaces/tachyon.py
@@ -865,14 +865,17 @@ def version(self):
865
866
TESTS::
867
868
- sage: tachyon_rt.version() # not tested
+ sage: tachyon_rt.version() # random
869
0.98.9
870
sage: tachyon_rt.version() >= '0.98.9'
871
True
872
"""
873
with os.popen('tachyon') as f:
874
- r = f.read()
875
- return re.search(r"Version ([\d.]*)", r)[1]
+ r = f.readline()
+ res = re.search(r"Version ([\d.]*)", r)
876
+ # debian patches tachyon so it won't report the version
877
+ # we hardcode '0.99' since that's indeed the version they ship
878
+ return res[1] if res else '0.99'
879
880
def help(self, use_pager=True):
881
0 commit comments