Bug 1698393 - python-django-2.1.7-1.fc31 FTBFS with Python 3.8
Summary: python-django-2.1.7-1.fc31 FTBFS with Python 3.8
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: python-django
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Miro Hrončok
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1674439
Blocks: PYTHON38
TreeView+ depends on / blocked
 
Reported: 2019-04-10 10:00 UTC by Miro Hrončok
Modified: 2019-04-11 12:59 UTC (History)
6 users (show)

Fixed In Version: python-django-2.2-1.fc31
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-04-11 12:59:52 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Full log from Copr (2.93 MB, text/plain)
2019-04-10 10:00 UTC, Miro Hrončok
no flags Details

Description Miro Hrončok 2019-04-10 10:00:47 UTC
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.

Comment 1 Miro Hrončok 2019-04-10 10:04:29 UTC
I'll try to update to 2.2.

Comment 2 Miro Hrončok 2019-04-10 10:39:54 UTC
Indeed, 2.2 works.

https://src.fedoraproject.org/rpms/python-django/pull-request/8


Note You need to log in before you can comment on or make changes to this bug.