aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorHenrique <typoon@gmail.com>2019-11-25 10:48:42 -0500
committerHenrique <typoon@gmail.com>2019-11-25 10:48:42 -0500
commit5b582a76a862b0ad31e048e1e5f3f66df09062bc (patch)
treef95a71f6d22c6721b77a68315dc2c9a20bf86735 /test
parent1c8abaed78028f4a14044b06430ef86e7e36b6c3 (diff)
downloadmitmproxy-5b582a76a862b0ad31e048e1e5f3f66df09062bc.tar.gz
mitmproxy-5b582a76a862b0ad31e048e1e5f3f66df09062bc.tar.bz2
mitmproxy-5b582a76a862b0ad31e048e1e5f3f66df09062bc.zip
Make windows happy once again
Diffstat (limited to 'test')
-rw-r--r--test/mitmproxy/addons/test_command_history.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/mitmproxy/addons/test_command_history.py b/test/mitmproxy/addons/test_command_history.py
index 847c273d..405b8323 100644
--- a/test/mitmproxy/addons/test_command_history.py
+++ b/test/mitmproxy/addons/test_command_history.py
@@ -77,6 +77,8 @@ class TestCommandHistory:
saved_commands = [cmd for cmd in history.saved_commands]
assert saved_commands == ['cmd4', 'cmd3', 'cmd2']
+ history.command_history_file.close()
+
def test_get_next_and_prev(self, tctx):
history = command_history.CommandHistory(5)
@@ -150,6 +152,8 @@ class TestCommandHistory:
assert history.get_next() == ''
assert history.get_next() == ''
+ history.command_history_file.close()
+
def test_clear(self, tctx):
history = command_history.CommandHistory(3)
@@ -165,6 +169,8 @@ class TestCommandHistory:
assert history.get_prev() == ''
assert history.get_prev() == ''
+ history.command_history_file.close()
+
def test_filter(self, tctx):
history = command_history.CommandHistory(3)
@@ -196,3 +202,5 @@ class TestCommandHistory:
assert history.get_next() == 'abc'
assert history.get_next() == ''
assert history.get_next() == ''
+
+ history.command_history_file.close()