Skip to content

Commit 2898cc3

Browse files
committed
Add a poor man's xfail
1 parent ea27f36 commit 2898cc3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Lib/test/test_tomllib/test_data.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,12 @@ def test_valid(self):
5050
for valid, expected in zip(VALID_FILES, VALID_FILES_EXPECTED):
5151
with self.subTest(msg=valid.stem):
5252
if isinstance(expected, MissingFile):
53-
# Would be nice to xfail here, but unittest doesn't seem
54-
# to allow that in a nice way.
53+
# For a poor man's xfail, assert that this is one of the
54+
# test cases where expected data is known to be missing.
55+
assert valid.stem in {
56+
"qa-array-inline-nested-1000",
57+
"qa-table-inline-nested-1000",
58+
}
5559
continue
5660
toml_str = valid.read_bytes().decode()
5761
actual = tomllib.loads(toml_str)

0 commit comments

Comments
 (0)