#36997: test_double_replaced_migrations_are_checked_correctly fails 
intermittently
under Windows Subsystem for Linux (WSL)
----------------------------------+--------------------------------------
     Reporter:  Stewart Matheson  |                    Owner:  (none)
         Type:  Bug               |                   Status:  closed
    Component:  Migrations        |                  Version:  dev
     Severity:  Normal            |               Resolution:  needsinfo
     Keywords:                    |             Triage Stage:  Unreviewed
    Has patch:  1                 |      Needs documentation:  0
  Needs tests:  0                 |  Patch needs improvement:  0
Easy pickings:  0                 |                    UI/UX:  0
----------------------------------+--------------------------------------
Comment (by mweinelt):

 We're seeing this in nixpkgs specifically on aarch64-linux after upgrading
 from 6.0.3 to 6.0.4 on Python 3.14.3. I can reproduce this across various
 host machines, but not on Python 3.13.12.


 {{{
 ======================================================================
 ERROR: test_double_replaced_migrations_are_checked_correctly
 
(migrations.test_commands.SquashMigrationsTests.test_double_replaced_migrations_are_checked_correctly)
 If replaced migrations are already applied and replacing migrations
 ----------------------------------------------------------------------
 Traceback (most recent call last):
   File
 
"/nix/store/s33vdxkahhrdbyrqyw8yn71kzr44l6a0-python3-3.14.3/lib/python3.14/unittest/case.py",
 line 58, in testPartExecutor
     yield
   File
 
"/nix/store/s33vdxkahhrdbyrqyw8yn71kzr44l6a0-python3-3.14.3/lib/python3.14/unittest/case.py",
 line 669, in run
     self._callTestMethod(testMethod)

   File
 
"/nix/store/s33vdxkahhrdbyrqyw8yn71kzr44l6a0-python3-3.14.3/lib/python3.14/unittest/case.py",
 line 615, in _callTestMethod
     result = method()
     ^^^^^^^^^^^^^^^
   File "/build/source/tests/migrations/test_commands.py", line 3197, in
 test_double_replaced_migrations_are_checked_correctly
     call_command("migrate", "migrations", interactive=False, verbosity=0)
     ^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/core/management/__init__.py", line 195, in call_command
     return command.execute(*args, **defaults)
       ^^^^^^^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/core/management/base.py", line 464, in execute
     output = self.handle(*args, **options)
     ^^^^^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/core/management/base.py", line 111, in wrapper
     res = handle_func(*args, **kwargs)
     ^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/core/management/commands/migrate.py", line 114, in handle
     executor = MigrationExecutor(connection,
 self.migration_progress_callback)
     ^^^^^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/db/migrations/executor.py", line 18, in __init__
     self.loader = MigrationLoader(self.connection)
     ^^^^^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/db/migrations/loader.py", line 59, in __init__
     self.build_graph()
     ^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/db/migrations/loader.py", line 282, in build_graph
     self.load_disk()
     ^^^^^^^^^^^^^^^
   File "/nix/store/2z5nsfr1b1hrk47as0sa3gxa2mdy2sck-
 python3.14-django-6.0.4/lib/python3.14/site-
 packages/django/db/migrations/loader.py", line 121, in load_disk
     migration_module = import_module(migration_path)
     ^^^
   File
 
"/nix/store/s33vdxkahhrdbyrqyw8yn71kzr44l6a0-python3-3.14.3/lib/python3.14/importlib/__init__.py",
 line 88, in import_module
     return _bootstrap._gcd_import(name[level:], package, level)
       ^^^^^^^^^^^^^^^^^
   File "<frozen importlib._bootstrap>", line 1398, in _gcd_import
   File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
   File "<frozen importlib._bootstrap>", line 1335, in
 _find_and_load_unlocked
 ModuleNotFoundError: No module named
 
'tmpkv94tvgb.migrations.0001_initial_squashed_0002_auto_20260419_1921_squashed_0003_auto_20260419_1921'
 }}}
-- 
Ticket URL: <https://code.djangoproject.com/ticket/36997#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/django-updates/0107019da84f0ee7-4f296da7-04ed-4137-9993-7bf18e8a3f24-000000%40eu-central-1.amazonses.com.

Reply via email to