[pypy-issue] Issue #2555: Default MagicMock __gt__ behavior differs between PyPy and CPython (pypy/pypy)
rowillia
issues-reply at bitbucket.org
Mon May 8 13:21:19 EDT 2017
New issue 2555: Default MagicMock __gt__ behavior differs between PyPy and CPython
https://bitbucket.org/pypy/pypy/issues/2555/default-magicmock-__gt__-behavior-differs
rowillia:
This is a small issue, but leads to a bunch of false positives when testing with PyPy and CPython, making adoption harder.
Using mock==2.0.0 installed from PyPI
PyPy Version:
```
Python 2.7.13 (5.7.1+dfsg-2ubuntu1~ppa1~ubuntu14.04, May 02 2017, 19:33:41)
[PyPy 5.7.1 with GCC 4.8.4]
```
In PyPy:
```python
>>> from mock import MagicMock
>>> z = MagicMock()
>>> 100 <= z
False
```
In Python 2.7.13:
```python
>>> from mock import MagicMock
>>> z = MagicMock()
>>> 100 <= z
True
```
More information about the pypy-issue
mailing list