Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Dec 2, 2017

Conversation

nascheme
Copy link
Member

@nascheme nascheme commented Aug 3, 2017

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
Copy link
Member Author

nascheme commented Aug 3, 2017

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 Dec 2, 2017
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.

None yet

2 participants