summaryrefslogtreecommitdiff
path: root/BaseTools/Tests
diff options
context:
space:
mode:
Diffstat (limited to 'BaseTools/Tests')
-rw-r--r--BaseTools/Tests/CheckPythonSyntax.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/BaseTools/Tests/CheckPythonSyntax.py b/BaseTools/Tests/CheckPythonSyntax.py
index 67d2ca4756..47eb81fce8 100644
--- a/BaseTools/Tests/CheckPythonSyntax.py
+++ b/BaseTools/Tests/CheckPythonSyntax.py
@@ -29,8 +29,8 @@ class Tests(TestTools.BaseToolsTest):
def SingleFileTest(self, filename):
try:
py_compile.compile(filename, doraise=True)
- except:
- self.fail('syntax error: ' + filename)
+ except Exception, e:
+ self.fail('syntax error: %s, Error is %s' % (filename, str(e)))
def MakePythonSyntaxCheckTests():
def GetAllPythonSourceFiles():