[Yt-svn] commit/yt: MatthewTurk: Swallow an error about not being able to get the current yt version.

Bitbucket commits-noreply at bitbucket.org
Wed Oct 5 12:07:26 PDT 2011


1 new changeset in yt:

http://bitbucket.org/yt_analysis/yt/changeset/340c1f364840/
changeset:   340c1f364840
branch:      yt
user:        MatthewTurk
date:        2011-10-05 21:07:13
summary:     Swallow an error about not being able to get the current yt version.
affected #:  1 file (-1 bytes)

--- a/tests/runall.py	Wed Oct 05 07:43:38 2011 -0400
+++ b/tests/runall.py	Wed Oct 05 15:07:13 2011 -0400
@@ -14,6 +14,7 @@
 import imp
 import optparse
 import itertools
+import time
 
 #
 # We assume all tests are to be run, unless explicitly given the name of a
@@ -50,7 +51,10 @@
 if __name__ == "__main__":
     mapping = find_and_initialize_tests()
     test_storage_directory = ytcfg.get("yt","test_storage_dir")
-    my_hash = get_yt_version()
+    try:
+        my_hash = get_yt_version()
+    except:
+        my_hash = "UNKNOWN%s" % (time.time())
     parser = optparse.OptionParser()
     parser.add_option("-f", "--parameter-file", dest="parameter_file",
                       default = os.path.join(cwd, "DD0010/moving7_0010"),

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the yt-svn mailing list