From 7b6346daacacab97a332e6dddaf9d5ae0f7d21ca Mon Sep 17 00:00:00 2001 From: Tom Viner Date: Sun, 27 Nov 2016 13:42:26 +0000 Subject: [PATCH] enable mock_open to work on py3.3/3.4 --- gabbi/tests/test_load_data_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gabbi/tests/test_load_data_file.py b/gabbi/tests/test_load_data_file.py index 83f9451..99536d4 100644 --- a/gabbi/tests/test_load_data_file.py +++ b/gabbi/tests/test_load_data_file.py @@ -22,7 +22,8 @@ from six.moves import mock @mock.patch( 'gabbi.case.open', new_callable=mock.mock_open, - read_data='dummy content' + read_data='dummy content', + create=True, ) class DataFileTest(unittest.TestCase): """Reading from local file is only allowed at or below the