Reset data in Writable

This commit is contained in:
Bo Maryniuk 2016-06-30 14:14:10 +02:00
parent c744aa1caf
commit 8e537ccc9e

View File

@ -60,7 +60,9 @@ def mock_open(data=None):
class Writable(StringIO):
data = []
def __init__(self):
StringIO.__init__(self)
self.data = []
def __exit__(self, exc_type, exc_val, exc_tb):
return self