1
0
mirror of https://github.com/django/django.git synced 2025-06-05 03:29:12 +00:00

Refs #23919 -- Removed Python 2 workaround in fixtures_regress.

This reverts commit 7e19641b0359c23105cc27eebd9ccb1963546f2a.
This commit is contained in:
Tim Graham 2025-02-11 12:38:58 -05:00 committed by GitHub
parent 41239fe34d
commit 47c837a1ff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,6 @@
# Unittests for fixtures. # Unittests for fixtures.
import json import json
import os import os
import re
import unittest import unittest
from io import StringIO from io import StringIO
from pathlib import Path from pathlib import Path
@ -425,11 +424,6 @@ class TestFixtures(TestCase):
# Output order isn't guaranteed, so check for parts # Output order isn't guaranteed, so check for parts
data = out.getvalue() data = out.getvalue()
# Get rid of artifacts like '000000002' to eliminate the differences
# between different Python versions.
data = re.sub("0{6,}[0-9]", "", data)
animals_data = sorted( animals_data = sorted(
[ [
{ {