From 5b582a76a862b0ad31e048e1e5f3f66df09062bc Mon Sep 17 00:00:00 2001 From: Henrique Date: Mon, 25 Nov 2019 10:48:42 -0500 Subject: [PATCH] Make windows happy once again --- test/mitmproxy/addons/test_command_history.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/mitmproxy/addons/test_command_history.py b/test/mitmproxy/addons/test_command_history.py index 847c273df..405b83235 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()