Skip to content

Commit ea27f36

Browse files
committed
Add asserts
1 parent d5e8053 commit ea27f36

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_tomllib/test_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def __init__(self, path: Path):
1717
DATA_DIR = Path(__file__).parent / "data"
1818

1919
VALID_FILES = tuple((DATA_DIR / "valid").glob("**/*.toml"))
20+
assert VALID_FILES, "Valid TOML test files not found"
2021

2122
_expected_files = []
2223
for p in VALID_FILES:
@@ -29,6 +30,7 @@ def __init__(self, path: Path):
2930
VALID_FILES_EXPECTED = tuple(_expected_files)
3031

3132
INVALID_FILES = tuple((DATA_DIR / "invalid").glob("**/*.toml"))
33+
assert INVALID_FILES, "Invalid TOML test files not found"
3234

3335

3436
class TestData(unittest.TestCase):

0 commit comments

Comments
 (0)