Use as a context manager doesn't work in Python 2.7

Create issue
Issue #12 new
Former user created an issue

While updating the Python mock comparison, Herman Sheremetyev found that the examples using fudge objects as context managers don't work in Python 2.7. Dingus seems to share this bug, so whichever one of us fixes it first should let the other know. ;)

Comments (2)

  1. Former user Account Deleted reporter

    But how do you get them on the type? They'd have to be on the Dingus class itself, which is crazy. I looked at the Mock source and it doesn't seem to do anything special to get around this, leaving me doubly confused.

    For now, I've commented out the entries in the mock comparison that fail on 2.7 because of this (two for Dingus, one for Fudge). Commit:

  2. Log in to comment