mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Refs #23919 -- Removed misc Python 2/3 references.
This commit is contained in:
parent
11856ea44e
commit
1c466994d9
22 changed files with 62 additions and 115 deletions
|
@ -672,8 +672,8 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||
module = 'migrations.test_migrations_order'
|
||||
with self.temporary_migration_module(module=module) as migration_dir:
|
||||
if hasattr(importlib, 'invalidate_caches'):
|
||||
# Python 3 importlib caches os.listdir() on some platforms like
|
||||
# Mac OS X (#23850).
|
||||
# importlib caches os.listdir() on some platforms like Mac OS X
|
||||
# (#23850).
|
||||
importlib.invalidate_caches()
|
||||
call_command('makemigrations', 'migrations', '--empty', '-n', 'a', '-v', '0')
|
||||
self.assertTrue(os.path.exists(os.path.join(migration_dir, '0002_a.py')))
|
||||
|
@ -1202,8 +1202,8 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||
content = cmd("0001", migration_name_0001)
|
||||
self.assertIn("dependencies=[\n]", content)
|
||||
|
||||
# Python 3 importlib caches os.listdir() on some platforms like
|
||||
# Mac OS X (#23850).
|
||||
# importlib caches os.listdir() on some platforms like Mac OS X
|
||||
# (#23850).
|
||||
if hasattr(importlib, 'invalidate_caches'):
|
||||
importlib.invalidate_caches()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue