aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/addons/test_clientplayback.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/addons/test_clientplayback.py')
-rw-r--r--test/mitmproxy/addons/test_clientplayback.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/test/mitmproxy/addons/test_clientplayback.py b/test/mitmproxy/addons/test_clientplayback.py
index ef1f0782..6b8b7c90 100644
--- a/test/mitmproxy/addons/test_clientplayback.py
+++ b/test/mitmproxy/addons/test_clientplayback.py
@@ -1,4 +1,5 @@
import os
+import pytest
from unittest import mock
from mitmproxy.test import tflow
@@ -57,9 +58,5 @@ class TestClientPlayback:
tctx.configure(cp, client_replay=[path])
tctx.configure(cp, client_replay=[])
tctx.configure(cp)
- tutils.raises(
- exceptions.OptionsError,
- tctx.configure,
- cp,
- client_replay=["nonexistent"]
- )
+ with pytest.raises(exceptions.OptionsError):
+ tctx.configure(cp, client_replay=["nonexistent"])