aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lexTests.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/lexTests.py')
-rw-r--r--test/lexTests.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/lexTests.py b/test/lexTests.py
index 5c14bafc6..4d5cde4ff 100644
--- a/test/lexTests.py
+++ b/test/lexTests.py
@@ -2,11 +2,12 @@
from __future__ import with_statement
-import io
-import os
-import unittest
+import io, os, sys, unittest
-import XiteWin
+if sys.platform == "win32":
+ import XiteWin as Xite
+else:
+ import XiteQt as Xite
keywordsHTML = [
b"b body content head href html link meta "
@@ -18,7 +19,7 @@ b"sub"
class TestLexers(unittest.TestCase):
def setUp(self):
- self.xite = XiteWin.xiteFrame
+ self.xite = Xite.xiteFrame
self.ed = self.xite.ed
self.ed.ClearAll()
self.ed.EmptyUndoBuffer()
@@ -123,4 +124,4 @@ class TestLexers(unittest.TestCase):
b"keyword6", b"keyword7"])
if __name__ == '__main__':
- XiteWin.main("lexTests")
+ Xite.main("lexTests")