Skip to content

Commit

Permalink
NOMERGE: Emit a test warning
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfstr committed Jan 7, 2024
1 parent ebef9ea commit 76d08d8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/crystal/tests/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ def _run_tests(test_names: List[str]) -> bool:
with warnings.catch_warnings(record=True) as warning_list, _warnings_sent_to_ci():
assert warning_list is not None

warnings.warn('This is a test warning!') # FIXME

Check warning on line 116 in src/crystal/tests/index.py

View workflow job for this annotation

GitHub Actions / build-linux (ubuntu-22.04, 3.8)

This is a test warning!

Check warning on line 116 in src/crystal/tests/index.py

View workflow job for this annotation

GitHub Actions / build-linux (ubuntu-22.04, 3.9)

This is a test warning!

for test_func in _TEST_FUNCS:
if not callable(test_func):
raise ValueError(f'Test function is not callable: {test_func}')
Expand Down

0 comments on commit 76d08d8

Please sign in to comment.