Browse Source

self descriptive path

Co-authored-by: Motov Yurii <[email protected]>
pull/13264/head
Jeremy Epstein 7 months ago
committed by GitHub
parent
commit
7dde3ee346
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      tests/test_dependency_runtime_errors.py

2
tests/test_dependency_runtime_errors.py

@ -9,7 +9,7 @@ app_doesnt_reraise = FastAPI()
async def get_username_reraises():
try:
async with await open_file("/path/to/sanchez.txt", "r") as f:
async with await open_file("/non_existing/path.txt", "r") as f:
yield await f.read() # pragma: no cover
except OSError as ex:
raise RuntimeError("File something something, wubba lubba dub dub!") from ex

Loading…
Cancel
Save