Skip to content

Commit

Permalink
Add xfail test capturing desired expectation.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 1, 2023
1 parent 4a4f062 commit 1bf8a7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_main.py
Expand Up @@ -43,6 +43,11 @@ def test_package_not_found_mentions_metadata(self):

assert "metadata" in str(ctx.exception)

def test_abc_enforced(self):
with self.assertRaises(AssertionError): # xfail
with self.assertRaises(TypeError):
type('DistributionSubclass', (Distribution,), {})()

@fixtures.parameterize(
dict(name=None),
dict(name=''),
Expand Down

0 comments on commit 1bf8a7a

Please sign in to comment.