We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea27f36 commit 2898cc3Copy full SHA for 2898cc3
Lib/test/test_tomllib/test_data.py
@@ -50,8 +50,12 @@ def test_valid(self):
50
for valid, expected in zip(VALID_FILES, VALID_FILES_EXPECTED):
51
with self.subTest(msg=valid.stem):
52
if isinstance(expected, MissingFile):
53
- # Would be nice to xfail here, but unittest doesn't seem
54
- # 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.
55
+ assert valid.stem in {
56
+ "qa-array-inline-nested-1000",
57
+ "qa-table-inline-nested-1000",
58
+ }
59
continue
60
toml_str = valid.read_bytes().decode()
61
actual = tomllib.loads(toml_str)
0 commit comments