]> git.ipfire.org Git - thirdparty/dnspython.git/commit
test: incorrect test relying on type comparison
authorArthur Gautier <baloo@gandi.net>
Wed, 30 Mar 2016 23:09:45 +0000 (23:09 +0000)
committerArthur Gautier <baloo@gandi.net>
Thu, 21 Apr 2016 15:33:05 +0000 (15:33 +0000)
commit670ec06fb389c6e8ff64aee2c0ddf538483efb90
tree22f5bc910916aac7bd68c3c8d75b7179635e25f6
parent41e5dd173e18899842cba18b7d022d81f34d4a97
test: incorrect test relying on type comparison

This test relies on python2 type comparison mechanism.

A simplier test case is:
``` python
In [1]: class X(object):
    def __gt__(self, other):
        return NotImplemented
   ...:

In [2]: a=X()

In [3]: a>1
Out[3]: True

In [4]: a<1
Out[4]: False
```

Works on python2, not on python3.
Therefore, I'm dropping the testcase

See http://eli.thegreenplace.net/2016/comparing-types-in-python-3/ for
more information about that

Signed-off-by: Arthur Gautier <baloo@gandi.net>
tests/test_name.py