Skip to content

Commit a186a73

Browse files
author
Elvis Pranskevichus
committed
test: Fix SchemaNameError test
PostgreSQL 9.3 raises UndefinedTableError instead of SchemaNameError when a reference to a non-existent table in a non-existent schema is made. Fix the test to test for non-existent schema specifically.
1 parent 6ef6e1d commit a186a73

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

postgresql/test/test_driver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ def testSyntaxError(self):
13551355
@pg_tmp
13561356
def testSchemaNameError(self):
13571357
try:
1358-
db.prepare("SELECT * FROM sdkfldasjfdskljZknvson.foo")()
1358+
db.prepare("CREATE TABLE sdkfldasjfdskljZknvson.foo()")()
13591359
except pg_exc.SchemaNameError:
13601360
return
13611361
self.fail("SchemaNameError was not raised")

0 commit comments

Comments
 (0)