diff --git a/tests/test_postgresql.py b/tests/test_postgresql.py index 1fa1116..b2bba20 100644 --- a/tests/test_postgresql.py +++ b/tests/test_postgresql.py @@ -28,7 +28,7 @@ def test_basic(self): # connect to postgresql (w/ psycopg2) conn = psycopg2.connect(**pgsql.dsn()) self.assertIsNotNone(conn) - self.assertRegexpMatches(pgsql.read_bootlog(), 'is ready to accept connections') + self.assertRegex(pgsql.read_bootlog(), 'is ready to accept connections') conn.close() # connect to postgresql (w/ sqlalchemy) @@ -38,7 +38,7 @@ def test_basic(self): # connect to postgresql (w/ pg8000) conn = pg8000.connect(**pgsql.dsn()) self.assertIsNotNone(conn) - self.assertRegexpMatches(pgsql.read_bootlog(), 'is ready to accept connections') + self.assertRegex(pgsql.read_bootlog(), 'is ready to accept connections') conn.close() finally: # shutting down