diff options
Diffstat (limited to 'tests/QtScript')
-rw-r--r-- | tests/QtScript/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/QtScript/bug_1022.py | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/QtScript/CMakeLists.txt b/tests/QtScript/CMakeLists.txt index a3c7c7ded..dfea68df0 100644 --- a/tests/QtScript/CMakeLists.txt +++ b/tests/QtScript/CMakeLists.txt @@ -1,4 +1,5 @@ PYSIDE_TEST(base_test.py) +PYSIDE_TEST(bug_1022.py) PYSIDE_TEST(engine_test.py) PYSIDE_TEST(property_test.py) PYSIDE_TEST(qscriptvalue_test.py) diff --git a/tests/QtScript/bug_1022.py b/tests/QtScript/bug_1022.py new file mode 100644 index 000000000..3a246145a --- /dev/null +++ b/tests/QtScript/bug_1022.py @@ -0,0 +1,13 @@ +import unittest + +from PySide.QtCore import * +from PySide.QtScript import * + +class QScriptValueTest(unittest.TestCase): + def testQScriptValue(self): + app = QCoreApplication([]) + engine = QScriptEngine() + repr(engine.evaluate('1 + 1')) + +if __name__ == '__main__': + unittest.main() |