enable mock_open to work on py3.3/3.4
This commit is contained in:
parent
bec94c5554
commit
7b6346daac
@ -22,7 +22,8 @@ from six.moves import mock
|
|||||||
@mock.patch(
|
@mock.patch(
|
||||||
'gabbi.case.open',
|
'gabbi.case.open',
|
||||||
new_callable=mock.mock_open,
|
new_callable=mock.mock_open,
|
||||||
read_data='dummy content'
|
read_data='dummy content',
|
||||||
|
create=True,
|
||||||
)
|
)
|
||||||
class DataFileTest(unittest.TestCase):
|
class DataFileTest(unittest.TestCase):
|
||||||
"""Reading from local file is only allowed at or below the
|
"""Reading from local file is only allowed at or below the
|
||||||
|
Loading…
Reference in New Issue
Block a user