Skip to content

Commit a76cbba

Browse files
committed
fixed test case
1 parent 3fe66cf commit a76cbba

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

tests/PythonQtTests.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,8 @@ void PythonQtTestApi::testVariables()
255255
QSet<QString> s;
256256
// check that at least these three variables are set
257257
s << "obj" << "someObject" << "someValue";
258-
QString a;
259-
foreach (a, l) {
260-
QVERIFY(s.contains(a));
258+
foreach (QString value, s) {
259+
QVERIFY(l.indexOf(value)!=-1);
261260
}
262261

263262
// insert a second time!

0 commit comments

Comments
 (0)