We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a1bbaab commit f91a93eCopy full SHA for f91a93e
1 file changed
tests/sqltests.py
@@ -84,7 +84,13 @@ def tearDown(self):
84
85
@classmethod
86
def tearDownClass(self):
87
- self.db.execute("DROP TABLE IF EXISTS cs50")
+ try:
88
+ self.db.execute("DROP TABLE IF EXISTS cs50")
89
+ except RuntimeError as e:
90
+
91
+ # suppress "unknown table"
92
+ if not str(e).startswith("(1051L"):
93
+ raise e
94
95
class PostgresTests(SQLTests):
96
0 commit comments