diff options
Diffstat (limited to 'test/performanceTests.py')
-rw-r--r-- | test/performanceTests.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/test/performanceTests.py b/test/performanceTests.py index da9c87759..5cfd6e25c 100644 --- a/test/performanceTests.py +++ b/test/performanceTests.py @@ -3,14 +3,17 @@ from __future__ import with_statement from __future__ import unicode_literals -import os, string, time, unittest +import os, string, sys, time, unittest -import XiteWin +if sys.platform == "win32": + import XiteWin as Xite +else: + import XiteQt as Xite class TestPerformance(unittest.TestCase): def setUp(self): - self.xite = XiteWin.xiteFrame + self.xite = Xite.xiteFrame self.ed = self.xite.ed self.ed.ClearAll() self.ed.EmptyUndoBuffer() @@ -81,4 +84,4 @@ class TestPerformance(unittest.TestCase): self.assert_(self.ed.Length > 0) if __name__ == '__main__': - XiteWin.main("performanceTests") + Xite.main("performanceTests") |