tox (and travis ci?) were hiding the fact that the gdbm dependency was the problem

This commit is contained in:
Noah Levitt 2013-12-07 00:28:56 -08:00
commit 0d617a927c
2 changed files with 5 additions and 1 deletions

View File

@ -9,6 +9,5 @@ python:
before_install:
- sudo apt-get update
- sudo apt-get -y install python-gdbm python3-gdbm
install: python setup.py install
script: python setup.py test

View File

@ -227,6 +227,11 @@ class ProxyingRecorder(object):
self._update(hunk)
return hunk
def readinto(self, b):
n = self.fp.readinto(b)
self._update(b[:n])
return n
def readline(self, size=-1):
# XXX depends on implementation details of self.fp.readline(), in
# particular that it doesn't call self.fp.read()