[llvm] r188360 - [lit] Fix a relative import issue I missed earlier.
Daniel Dunbar
daniel at zuster.org
Tue Aug 13 22:07:17 PDT 2013
Author: ddunbar
Date: Wed Aug 14 00:07:16 2013
New Revision: 188360
URL: http://llvm.org/viewvc/llvm-project?rev=188360&view=rev
Log:
[lit] Fix a relative import issue I missed earlier.
Modified:
llvm/trunk/utils/lit/lit/LitTestCase.py
Modified: llvm/trunk/utils/lit/lit/LitTestCase.py
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/LitTestCase.py?rev=188360&r1=188359&r2=188360&view=diff
==============================================================================
--- llvm/trunk/utils/lit/lit/LitTestCase.py (original)
+++ llvm/trunk/utils/lit/lit/LitTestCase.py Wed Aug 14 00:07:16 2013
@@ -1,5 +1,7 @@
+from __future__ import absolute_import
import unittest
-import Test
+
+import lit.Test
"""
TestCase adaptor for providing a 'unittest' compatible interface to 'lit' tests.
@@ -24,7 +26,7 @@ class LitTestCase(unittest.TestCase):
tr, output = self._test.config.test_format.execute(
self._test, self._lit_config)
- if tr is Test.UNRESOLVED:
+ if tr is lit.Test.UNRESOLVED:
raise UnresolvedError(output)
elif tr.isFailure:
self.fail(output)
More information about the llvm-commits
mailing list