Skip to content

Commit

Permalink
Add a poor man's xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
hukkin committed Mar 2, 2022
1 parent ea27f36 commit 2898cc3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Lib/test/test_tomllib/test_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,12 @@ def test_valid(self):
for valid, expected in zip(VALID_FILES, VALID_FILES_EXPECTED):
with self.subTest(msg=valid.stem):
if isinstance(expected, MissingFile):
# Would be nice to xfail here, but unittest doesn't seem
# to allow that in a nice way.
# For a poor man's xfail, assert that this is one of the
# test cases where expected data is known to be missing.
assert valid.stem in {
"qa-array-inline-nested-1000",
"qa-table-inline-nested-1000",
}
continue
toml_str = valid.read_bytes().decode()
actual = tomllib.loads(toml_str)
Expand Down

0 comments on commit 2898cc3

Please sign in to comment.