Skip to content

Add a minimal unit test for Python/frozen.c. - #2995

Merged
nascheme merged 1 commit into
python:masterfrom
nascheme:test_frozen
Dec 2, 2017
Merged

nascheme merged 1 commit into
python:masterfrom
nascheme:test_frozen

Conversation

@nascheme

@nascheme nascheme commented Aug 3, 2017

Copy link
Copy Markdown
Member

If the marshal or bytecode formats get changed, frozen.c needs to
be updated as well. It can be easy to miss this step and not doing
so can cause test_importlib to crash in mysterious ways. Add an
explict unit test to make it easier to track down the problem.

If the marshal or bytecode formats get changed, frozen.c needs to
be updated as well.  It can be easy to miss this step and not doing
so can cause test_importlib to crash in mysterious ways.  Add an
explict unit test to make it easier to track down the problem.
@nascheme

nascheme commented Aug 3, 2017

Copy link
Copy Markdown
Member Author

A test like this would have saved me about 2 hours of debugging. So, I think it is worth having the extra test module even though test_importlib implicitly tests the frozen.c module.

@nascheme
nascheme merged commit 1eaa116 into python:master Dec 2, 2017
@nascheme
nascheme deleted the test_frozen branch December 2, 2017 21:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants