Commits

Cameron Hummels committed 66828be

Fixing stupid mistake with enzo test existence exception.

Comments (0)

Files changed (1)

yt/utilities/exceptions.py

 
 # We don't need to import 'exceptions'
 #import exceptions
+import os.path
 
 class YTException(Exception):
     def __init__(self, pf = None):
         return "Must have A>=B>=C"
 
 class EnzoTestOutputFileNonExistent(YTException):
-    def __init__(self, testname):
-        self.testname = testname
+    def __init__(self, filename):
+        self.filename = filename
+        self.testname = os.path.basename(os.path.dirname(filename))
 
     def __str__(self):
         return "Enzo test output file (OutputLog) not generated for: " + \