Skip to content

Commit

Permalink
Flush the buffered writer before getting the value
Browse files Browse the repository at this point in the history
  • Loading branch information
jdidion committed Jul 23, 2017
1 parent e0a1a72 commit b0c7f7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def __init__(self, name, as_bytes):
self.as_bytes = as_bytes

def getvalue(self):
self.wrapper.flush()
val = self.bytes_io.getvalue()
if not self.as_bytes:
val = val.decode()
Expand Down

0 comments on commit b0c7f7f

Please sign in to comment.