aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/lexTests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-08-25 17:36:43 +1000
committerNeil <nyamatongwe@gmail.com>2017-08-25 17:36:43 +1000
commit7c347102a548d811cd4cb31fabf3427f31516a53 (patch)
tree6e48ad30f1ca1d4aeee76fa8b544fa2d9c20cc68 /test/lexTests.py
parent06d3f7dd781d5a82f8141cb11279df64d9fd4880 (diff)
downloadscintilla-mirror-7c347102a548d811cd4cb31fabf3427f31516a53.tar.gz
Backport: Moved *StyleBits* APIs into deprecated category.
Backport of changeset 6379:b44bb3627bbd.
Diffstat (limited to 'test/lexTests.py')
-rw-r--r--test/lexTests.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/lexTests.py b/test/lexTests.py
index 03d3d1cee..2dbb1b3ad 100644
--- a/test/lexTests.py
+++ b/test/lexTests.py
@@ -75,9 +75,7 @@ class TestLexers(unittest.TestCase):
self.ed.EmptyUndoBuffer()
self.ed.SetCodePage(65001)
self.ed.LexerLanguage = lexerName
- bits = self.ed.StyleBitsNeeded
- mask = 2 << bits - 1
- self.ed.StyleBits = bits
+ mask = 0xff
for i in range(len(keywords)):
self.ed.SetKeyWords(i, keywords[i])