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 35da17c commit 72949b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_main.py
Expand Up @@ -48,6 +48,11 @@ def test_new_style_classes(self):
self.assertIsInstance(Distribution, type)
self.assertIsInstance(MetadataPathFinder, type)

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 72949b7

Please sign in to comment.