Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit 4182336

Browse files
sjoelundOpenModelica-Hudson
authored andcommitted
Fix use before define
Belonging to [master]: - #2599
1 parent 47f3ecb commit 4182336

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Examples/ComplianceSuite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ def readTest(f, expectedFailures):
1818
print("Error loading file %s" % f)
1919
raise
2020

21+
expectFail = cl in expectedFailures
22+
2123
if "killed" in res:
2224
tc1 = TestCase(name, cl, 0, '', '')
2325
tc2 = TestCase(name, cl, 0, '', '')
@@ -32,7 +34,6 @@ def readTest(f, expectedFailures):
3234
tc2 = TestCase(name, cl, res["time"], res["messages"], '')
3335
success = res["success"]
3436
shouldPass = res["shouldPass"]
35-
expectFail = cl in expectedFailures
3637
if expectFail:
3738
if success:
3839
tc1.add_error_info('This testcase started working (failure was expected)')

0 commit comments

Comments
 (0)