Skip to content

Commit b55b87d

Browse files
committed
specify the expected exception type of the xfail test
1 parent 6414fe1 commit b55b87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@ class EmptyModel(Model): pass
352352
assert one.biz == 'x'
353353
assert not hasattr(one, 'bar')
354354

355-
@mark.xfail
355+
@mark.xfail(raises=AttributeError)
356356
def test_replace_column_same_type(self):
357357
self.db.run("ALTER TABLE foo ADD COLUMN biz int NOT NULL DEFAULT 0")
358358
self.db.run("ALTER TABLE foo DROP COLUMN bar")

0 commit comments

Comments
 (0)