Kaydet (Commit) 63f90f55 authored tarafından Tim Graham's avatar Tim Graham

Fixed #29498 -- Fixed a missing pyc test file in source distribution.

üst fcc4e251
...@@ -521,7 +521,12 @@ class PycLoaderTests(MigrationTestBase): ...@@ -521,7 +521,12 @@ class PycLoaderTests(MigrationTestBase):
MigrationLoader reraises ImportErrors caused by "bad magic number" pyc MigrationLoader reraises ImportErrors caused by "bad magic number" pyc
files with a more helpful message. files with a more helpful message.
""" """
with self.temporary_migration_module(module='migrations.test_migrations_bad_pyc'): with self.temporary_migration_module(module='migrations.test_migrations_bad_pyc') as migration_dir:
# The -tpl suffix is to avoid the pyc exclusion in MANIFEST.in.
os.rename(
os.path.join(migration_dir, '0001_initial.pyc-tpl'),
os.path.join(migration_dir, '0001_initial.pyc'),
)
msg = ( msg = (
r"Couldn't import '\w+.migrations.0001_initial' as it appears " r"Couldn't import '\w+.migrations.0001_initial' as it appears "
"to be a stale .pyc file." "to be a stale .pyc file."
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment