Skip to content

Commit

Permalink
fixed strange infinite recursion bug
Browse files Browse the repository at this point in the history
  • Loading branch information
uweschmitt committed Aug 7, 2014
1 parent 1d7b574 commit f7282b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _pytest/capture.py
Expand Up @@ -238,7 +238,8 @@ def writelines(self, linelist):
self.write(data)

def __getattr__(self, name):
return getattr(self.buffer, name)
if name != "buffer":
return getattr(self.buffer, name)


class MultiCapture(object):
Expand Down

0 comments on commit f7282b8

Please sign in to comment.