mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2025-02-02 00:05:27 +00:00
Make windows happy once again
This commit is contained in:
parent
1c8abaed78
commit
5b582a76a8
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user