<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pytest on DevTrace — 글로벌 개발 에러 트러블슈팅</title><link>https://tokkabi.com/tags/pytest/</link><description>Recent content in Pytest on DevTrace — 글로벌 개발 에러 트러블슈팅</description><generator>Hugo -- 0.125.0</generator><language>ko</language><lastBuildDate>Sat, 11 Jul 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://tokkabi.com/tags/pytest/index.xml" rel="self" type="application/rss+xml"/><item><title>pytest에서 예외 발생을 올바르게 검증하는 방법 (pytest.raises)</title><link>https://tokkabi.com/posts/pytest-exception-assert-raises/</link><pubDate>Sat, 11 Jul 2026 00:00:00 +0000</pubDate><guid>https://tokkabi.com/posts/pytest-exception-assert-raises/</guid><description>pytest에서 예외 발생을 검증하는 올바른 방법은 pytest.raises를 사용하는 것입니다. try/except와 pytest.fail을 사용하면 traceback이 제대로 출력되지 않아 디버깅이 어렵습니다. pytest.raises 컨텍스트 매니저를 활용하면 예외 발생 여부와 예외 정보를 깔끔하게 확인할 수 있습니다.</description></item></channel></rss>