aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/win32Tests.py
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2023-03-15 09:45:15 +1100
committerNeil <nyamatongwe@gmail.com>2023-03-15 09:45:15 +1100
commit481b5651df9bd160d4ff1f1ba471eead61a53252 (patch)
treed1fdb9642eaaef49eab6675dc816a7f7246f93b9 /test/win32Tests.py
parentf5b5b395e2c21c6c8a338a2b2641e3143534589c (diff)
downloadscintilla-mirror-481b5651df9bd160d4ff1f1ba471eead61a53252.tar.gz
Fix some warnings from ruff.
Diffstat (limited to 'test/win32Tests.py')
-rw-r--r--test/win32Tests.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/test/win32Tests.py b/test/win32Tests.py
index 974f6ceae..d1fc3652f 100644
--- a/test/win32Tests.py
+++ b/test/win32Tests.py
@@ -10,11 +10,10 @@
from __future__ import with_statement
from __future__ import unicode_literals
-import codecs, ctypes, os, sys, unittest
+import ctypes, unittest
-from MessageNumbers import msgs, sgsm
+from MessageNumbers import msgs
-import ctypes
user32 = ctypes.windll.user32
import XiteWin as Xite
@@ -32,8 +31,8 @@ class TestWins(unittest.TestCase):
# Helper methods
- def Send(self, msg, w, l):
- return user32.SendMessageW(self.sciHwnd, msgs[msg], w, l)
+ def Send(self, msg, wp, lp):
+ return user32.SendMessageW(self.sciHwnd, msgs[msg], wp, lp)
def GetTextLength(self):
return self.Send("WM_GETTEXTLENGTH", 0, 0)