Author: Ronan Lamy <ronan.l...@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(),
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to