diff options
| author | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-29 17:18:47 -0500 |
|---|---|---|
| committer | Ian Cordasco <graffatcolmingov@gmail.com> | 2016-07-29 18:14:14 -0500 |
| commit | e93aad6043f870d04648e7e0af983248ec60c9ef (patch) | |
| tree | 3b2d75b5aedc6052e23fdcc1288db8d53b43d8a6 /tests | |
| parent | 971dcc16f081203ec0374c50a75b84d8cc089025 (diff) | |
| download | flake8-e93aad6043f870d04648e7e0af983248ec60c9ef.tar.gz | |
Open our output file in append mode always
This avoid overwriting portions of our log output when using Flake8
in verbose mode.
Closes #193
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/unit/test_base_formatter.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/unit/test_base_formatter.py b/tests/unit/test_base_formatter.py index ae5c12a..8a99fa6 100644 --- a/tests/unit/test_base_formatter.py +++ b/tests/unit/test_base_formatter.py @@ -25,7 +25,7 @@ def test_start(filename): if filename is None: assert mock_open.called is False else: - mock_open.assert_called_once_with(filename, 'w') + mock_open.assert_called_once_with(filename, 'a') def test_stop(): |
