Skip to content

Commit 9f51f60

Browse files
committed
More hex case sensitivity locations
1 parent e6dd349 commit 9f51f60

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

apsw/tests/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7345,11 +7345,11 @@ def __init__(self, vfsname="obfu", basevfs=""):
73457345

73467346
def xOpen(innerself, name, flags):
73477347
x=ObfuscatedVFSFile(innerself.basevfs, name, flags)
7348-
self.assertIsNotNone(re.match("<ObfuscatedVFSFile filename \".*\" at 0x[a-f0-9]+>", str(x)))
7348+
self.assertIsNotNone(re.match("<ObfuscatedVFSFile filename \".*\" at 0x[A-Fa-f0-9]+>", str(x)))
73497349
return x
73507350

73517351
vfs = ObfuscatedVFS()
7352-
self.assertIsNotNone(re.match("<ObfuscatedVFS \"obfu\" inherits from \".*\" at 0x[0-9a-f]+>", str(vfs)))
7352+
self.assertIsNotNone(re.match("<ObfuscatedVFS \"obfu\" inherits from \".*\" at 0x[0-9a-fA-F]+>", str(vfs)))
73537353

73547354
query = "create table foo(x,y); insert into foo values(1,2); insert into foo values(3,4)"
73557355
self.db.cursor().execute(query)

apsw/tests/aiotest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1014,7 +1014,7 @@ def blocker():
10141014
e_wait.wait()
10151015
s = get(str(scon))
10161016
try:
1017-
self.assertIsNotNone(re.match(r"apsw.Connection \"\(unavailable\)\" at 0x[0-9a-f]+", s))
1017+
self.assertIsNotNone(re.match(r"apsw.Connection \"\(unavailable\)\" at 0x[0-9a-fA-F]+", s))
10181018
finally:
10191019
e_continue.set()
10201020
t.join()
@@ -1055,7 +1055,7 @@ async def blocker():
10551055
e_continue.set()
10561056

10571057
try:
1058-
self.assertIsNotNone(re.match(r"apsw.Connection \(async\) \"\(unavailable\)\" at 0x[0-9a-f]+", s))
1058+
self.assertIsNotNone(re.match(r"apsw.Connection \(async\) \"\(unavailable\)\" at 0x[0-9a-fA-F]+", s))
10591059
finally:
10601060
await acon.aclose()
10611061

apsw/tests/ftstests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ def testTokenizerShortInputs(self):
369369

370370
def testStr(self):
371371
foo = self.db.fts5_tokenizer("ascii")
372-
self.assertIsNotNone(re.match(r'<apsw.FTS5Tokenizer \"ascii\" args \(\) at 0x[a-f0-9]+>', str(foo)))
372+
self.assertIsNotNone(re.match(r'<apsw.FTS5Tokenizer \"ascii\" args \(\) at 0x[a-fA-F0-9]+>', str(foo)))
373373

374374
def testAPSWFTSTokenizers(self):
375375
"Test apsw.fts5 tokenizers"

0 commit comments

Comments
 (0)