Created attachment 1554155 [details] Full log from Copr The current Django (python-django-2.1.7-1.fc31) fails tests with Python 3.8: ====================================================================== FAIL: test_deterministic_mapping_ordering (serializers.test_yaml.YamlSerializerTestCase) Mapping such as fields should be deterministically ordered. (#24558) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/serializers/tests.py", line 316, in test_deterministic_mapping_ordering self.assertEqual(output, self.mapping_ordering_str % { AssertionError: '- mo[130 chars]:00:00\n categories:\n - 3\n - 1\n meta_data: []\n' != '- mo[130 chars]:00:00\n categories: [3, 1]\n meta_data: []\n' - model: serializers.article pk: 1 fields: author: 2 headline: Poker has no place on ESPN pub_date: 2006-06-16 11:00:00 - categories: + categories: [3, 1] ? +++++++ - - 3 - - 1 meta_data: [] ====================================================================== FAIL: test_aware_datetime_in_local_timezone (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 742, in test_aware_datetime_in_local_timezone self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30+03:00") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 13:20:30\\+03:00'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 13:20:30+03:00\n' ====================================================================== FAIL: test_aware_datetime_in_other_timezone (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 766, in test_aware_datetime_in_other_timezone self.assert_yaml_contains_datetime(data, "2011-09-01 17:20:30+07:00") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 17:20:30\\+07:00'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 17:20:30+07:00\n' ====================================================================== FAIL: test_aware_datetime_in_utc (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 718, in test_aware_datetime_in_utc self.assert_yaml_contains_datetime(data, "2011-09-01 10:20:30+00:00") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 10:20:30\\+00:00'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 10:20:30+00:00\n' ====================================================================== FAIL: test_aware_datetime_with_microsecond (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 694, in test_aware_datetime_with_microsecond self.assert_yaml_contains_datetime(data, "2011-09-01 17:20:30.405060+07:00") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 17:20:30\\.405060\\+07:00'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 17:20:30.405060+07:00\n' ====================================================================== FAIL: test_naive_datetime (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 646, in test_naive_datetime self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 13:20:30'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 13:20:30\n' ====================================================================== FAIL: test_naive_datetime_with_microsecond (timezones.tests.SerializationTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 670, in test_naive_datetime_with_microsecond self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30.405060") File "/builddir/build/BUILD/Django-2.1.7/tests/timezones/tests.py", line 624, in assert_yaml_contains_datetime self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt)) AssertionError: Regex didn't match: "\\n fields: {dt: !(!timestamp)? '2011\\-09\\-01\\ 13:20:30\\.405060'}" not found in '- model: timezones.event\n pk: null\n fields:\n dt: 2011-09-01 13:20:30.405060\n' ---------------------------------------------------------------------- Ran 12368 tests in 387.074s FAILED (failures=7, skipped=892, expected failures=4) Full log attached. This blocks Python 3.8 bootstrap towards kobo and pungi.
I'll try to update to 2.2.
Indeed, 2.2 works. https://src.fedoraproject.org/rpms/python-django/pull-request/8