[pypy-commit] pypy py3.5: Relax test and add a note of the inconsistency in CPython
rlamy
pypy.commits at gmail.com
Wed Jan 16 15:10:15 EST 2019
Author: Ronan Lamy <ronan.lamy at gmail.com>
Branch: py3.5
Changeset: r95651:1631e316d8aa
Date: 2019-01-16 20:09 +0000
http://bitbucket.org/pypy/pypy/changeset/1631e316d8aa/
Log: Relax test and add a note of the inconsistency in CPython
diff --git a/extra_tests/test_datetime.py b/extra_tests/test_datetime.py
--- a/extra_tests/test_datetime.py
+++ b/extra_tests/test_datetime.py
@@ -33,7 +33,9 @@
(timedelta_safe(1, 2, 3), "timedelta_safe(1, 2, 3)"),
])
def test_repr(obj, expected):
- assert repr(obj) == expected
+ # XXX: there's a discrepancy between datetime.py and CPython's _datetime
+ # for the repr() of Python-defined subclasses of datetime classes.
+ assert repr(obj).endswith(expected)
@pytest.mark.parametrize("obj", [
datetime.date.today(),
More information about the pypy-commit
mailing list