aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtScript/bug_1022.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtScript/bug_1022.py')
-rw-r--r--tests/QtScript/bug_1022.py13
1 files changed, 13 insertions, 0 deletions
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()