diff options
author | nyamatongwe <unknown> | 2012-07-17 14:04:38 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-07-17 14:04:38 +1000 |
commit | c2de152d26b99e2858618a2cd5394f2a0ea3796a (patch) | |
tree | a7e161f6d63a45b93e335202ed507705e240bf8a | |
parent | 7f1fed72f2c9af337444a7bc954e0a5e6d733551 (diff) | |
download | scintilla-mirror-c2de152d26b99e2858618a2cd5394f2a0ea3796a.tar.gz |
Use byte strings to make work with Python 3.2 on Windows 2000.
-rw-r--r-- | test/simpleTests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/simpleTests.py b/test/simpleTests.py index c8a111044..19de59a4e 100644 --- a/test/simpleTests.py +++ b/test/simpleTests.py @@ -827,13 +827,13 @@ class TestSearch(unittest.TestCase): def testPhilippeREFind(self): # Requires 1.,72 flags = self.ed.SCFIND_REGEXP - self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, "\w", flags)) - self.assertEquals(1, self.ed.FindBytes(0, self.ed.Length, "\W", flags)) - self.assertEquals(-1, self.ed.FindBytes(0, self.ed.Length, "\d", flags)) - self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, "\D", flags)) - self.assertEquals(1, self.ed.FindBytes(0, self.ed.Length, "\s", flags)) - self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, "\S", flags)) - self.assertEquals(2, self.ed.FindBytes(0, self.ed.Length, "\x62", flags)) + self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, b"\w", flags)) + self.assertEquals(1, self.ed.FindBytes(0, self.ed.Length, b"\W", flags)) + self.assertEquals(-1, self.ed.FindBytes(0, self.ed.Length, b"\d", flags)) + self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, b"\D", flags)) + self.assertEquals(1, self.ed.FindBytes(0, self.ed.Length, b"\s", flags)) + self.assertEquals(0, self.ed.FindBytes(0, self.ed.Length, b"\S", flags)) + self.assertEquals(2, self.ed.FindBytes(0, self.ed.Length, b"\x62", flags)) class TestProperties(unittest.TestCase): |