Skip to content

Commit b4a598f

Browse files
committed
Fix compatibility with PyPy3
1 parent be9df1d commit b4a598f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pendulum/datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ def __reduce__(self):
14251425
def __reduce_ex__(self, protocol):
14261426
return self.__class__, self._getstate(protocol)
14271427

1428-
def _cmp(self, other):
1428+
def _cmp(self, other, **kwargs):
14291429
# Fix for pypy which compares using this method
14301430
# which would lead to infinite recursion if we didn't override
14311431
kwargs = {

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
skipsdist = True
3-
envlist = py27, py35, py36, pypy
3+
envlist = py27, py35, py36, pypy, pypy3
44

55
[testenv]
66
whitelist_externals = poetry

0 commit comments

Comments
 (0)