From d5110e5191f59113fc122fee1ac535c8e07a8344 Mon Sep 17 00:00:00 2001 From: Jon Dufresne Date: Tue, 11 Feb 2020 17:32:57 -0800 Subject: [PATCH] Allow capital hex digits --- tests/test_warnings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_warnings.py b/tests/test_warnings.py index 0644fb10..3e09c595 100644 --- a/tests/test_warnings.py +++ b/tests/test_warnings.py @@ -14,7 +14,7 @@ class WarningsTest(unittest.TestCase): psycopg2.connect(dsn) msg = ( - "^unclosed connection $" ) with self.assertWarnsRegex(ResourceWarning, msg): @@ -30,8 +30,8 @@ class WarningsTest(unittest.TestCase): conn.close() msg = ( - "^unclosed cursor for " - "connection $" + "^unclosed cursor for " + "connection $" ) with self.assertWarnsRegex(ResourceWarning, msg): f()