Repository: incubator-ariatosca Updated Branches: refs/heads/ARIA-28-integrate-appveyor c152b71c4 -> fb89e12c0
fixes Project: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/commit/fb89e12c Tree: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/tree/fb89e12c Diff: http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/diff/fb89e12c Branch: refs/heads/ARIA-28-integrate-appveyor Commit: fb89e12c0b5684f5ce6c8168d0d2893382e8e1a0 Parents: c152b71 Author: Dan Kilman <[email protected]> Authored: Wed Nov 30 14:37:21 2016 +0200 Committer: Dan Kilman <[email protected]> Committed: Wed Nov 30 14:37:21 2016 +0200 ---------------------------------------------------------------------- tests/storage/__init__.py | 2 +- tests/test_logger.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/fb89e12c/tests/storage/__init__.py ---------------------------------------------------------------------- diff --git a/tests/storage/__init__.py b/tests/storage/__init__.py index 3408f2b..9bf48cc 100644 --- a/tests/storage/__init__.py +++ b/tests/storage/__init__.py @@ -50,4 +50,4 @@ class TestFileSystem(object): self.path = mkdtemp('{0}'.format(self.__class__.__name__)) def teardown_method(self): - rmtree(self.path) + rmtree(self.path, ignore_errors=True) http://git-wip-us.apache.org/repos/asf/incubator-ariatosca/blob/fb89e12c/tests/test_logger.py ---------------------------------------------------------------------- diff --git a/tests/test_logger.py b/tests/test_logger.py index 8c7a9af..2cb87ed 100644 --- a/tests/test_logger.py +++ b/tests/test_logger.py @@ -85,6 +85,8 @@ def test_create_file_log_handler(): logger = create_logger(handlers=[handler]) logger.debug(test_string) + temp_file.flush() + temp_file.seek(0) assert test_string in temp_file.read() with tempfile.NamedTemporaryFile() as temp_file:
