diff options
| author | David Black <dblack@atlassian.com> | 2014-05-16 16:35:20 +1000 |
|---|---|---|
| committer | David Black <dblack@atlassian.com> | 2014-05-16 16:35:20 +1000 |
| commit | 575f4a895ea525ecfedbfc1dc4c6f032ad92ccdc (patch) | |
| tree | b76e1b197f9c27db9ffb2a61c8f496972d6ebe6c | |
| parent | 2d3b5a303a65d6f80b84e63a1b3cf4b670c81f9a (diff) | |
| download | smmap-575f4a895ea525ecfedbfc1dc4c6f032ad92ccdc.tar.gz | |
instead of writing a string to a buffer api (in python 3) write a buffer.
Signed-off-by: David Black <dblack@atlassian.com>
| -rw-r--r-- | smmap/test/lib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/smmap/test/lib.py b/smmap/test/lib.py index 21e6c5a..01f6cc9 100644 --- a/smmap/test/lib.py +++ b/smmap/test/lib.py @@ -22,7 +22,7 @@ class FileCreator(object): fp = open(self._path, "wb") fp.seek(size-1) - fp.write('1') + fp.write(b'1') fp.close() assert os.path.getsize(self.path) == size |
