aboutsummaryrefslogtreecommitdiffstats
path: root/test/mitmproxy/test_flow_format_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/mitmproxy/test_flow_format_compat.py')
-rw-r--r--test/mitmproxy/test_flow_format_compat.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/mitmproxy/test_flow_format_compat.py b/test/mitmproxy/test_flow_format_compat.py
index a787278d..288de4fc 100644
--- a/test/mitmproxy/test_flow_format_compat.py
+++ b/test/mitmproxy/test_flow_format_compat.py
@@ -1,3 +1,5 @@
+import pytest
+
from mitmproxy import io
from mitmproxy import exceptions
from mitmproxy.test import tutils
@@ -22,5 +24,5 @@ def test_load_018():
def test_cannot_convert():
with open(tutils.test_data.path("mitmproxy/data/dumpfile-010"), "rb") as f:
flow_reader = io.FlowReader(f)
- with tutils.raises(exceptions.FlowReadException):
+ with pytest.raises(exceptions.FlowReadException):
list(flow_reader.stream())