Skip to content

Commit 1bf8a7a

Browse files
committed
Add xfail test capturing desired expectation.
1 parent 4a4f062 commit 1bf8a7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/test_main.py

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ def test_package_not_found_mentions_metadata(self):
4343

4444
assert "metadata" in str(ctx.exception)
4545

46+
def test_abc_enforced(self):
47+
with self.assertRaises(AssertionError): # xfail
48+
with self.assertRaises(TypeError):
49+
type('DistributionSubclass', (Distribution,), {})()
50+
4651
@fixtures.parameterize(
4752
dict(name=None),
4853
dict(name=''),

0 commit comments

Comments
 (0)