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

Lines changed: 6 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy