[issue27341] mock.patch decorating a generator returns a regular function.

2016-06-17 Thread Shoshana Berleant
Shoshana Berleant added the comment: I attached a file with 4 tests and the output. nosetests reports that all four tests were executed. In reality, only two tests were executed. -- Added file: http://bugs.python.org/file43443/silentfail.py

[issue27341] mock.patch decorating a generator returns a regular function.

2016-06-17 Thread Shoshana Berleant
Shoshana Berleant added the comment: output -- Added file: http://bugs.python.org/file43444/actual.out ___ Python tracker <http://bugs.python.org/issue27

[issue27341] mock.patch decorator fails silently on generators

2016-06-16 Thread Shoshana Berleant
New submission from Shoshana Berleant: (at least in my case) I committed two tests before I realized the tests were not being run: https://github.com/nipy/nipype/blob/abe7920a051f1570ccce4b71f26f50102d6e4e12/nipype/testing/tests/test_utils.py#L23 I realized this afternoon, while writing some