Skip to content

Commit 56ac983

Browse files
florianlinkmsmolens
authored andcommitted
fixed test
git-svn-id: http://svn.code.sf.net/p/pythonqt/code/trunk@399 ea8d5007-eb21-0410-b261-ccb3ea6e24a9
1 parent e1f1ed8 commit 56ac983

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/PythonQtTests.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,9 +465,11 @@ void PythonQtTestApi::initTestCase()
465465
void PythonQtTestApi::testProperties()
466466
{
467467
PythonQtObjectPtr main = PythonQt::self()->getMainModule();
468+
#ifdef PYTHONQT_SUPPORT_NAME_PROPERTY
468469
// check for name alias (for backward comp to Qt3)
469470
main.evalScript("obj.name = 'hello'");
470471
QVERIFY(QString("hello") == main.getVariable("obj.name").toString());
472+
#endif
471473

472474
main.evalScript("obj.objectName = 'hello2'");
473475
QVERIFY(QString("hello2") == main.getVariable("obj.objectName").toString());

0 commit comments

Comments
 (0)