Skip to content

bpo-43381: Add frozen module co_lines() test - #24712

Closed
nascheme wants to merge 2 commits into
python:mainfrom
nascheme:frozen_lines_test
Closed

bpo-43381: Add frozen module co_lines() test#24712
nascheme wants to merge 2 commits into
python:mainfrom
nascheme:frozen_lines_test

Conversation

@nascheme

@naschemenascheme commented Mar 3, 2021

Copy link
Copy Markdown
Member

@nascheme

Copy link
Copy Markdown
MemberAuthor

This PR will fail until __hello__ frozen module is re-generated, e.g. PR #24714.

@github-actions

Copy link
Copy Markdown

This PR is stale because it has been open for 30 days with no activity.

@github-actionsgithub-actionsBot added the stale Stale PR or inactive for long period of time. label Apr 3, 2021
name = '__hello__'
if name in sys.modules:
del sys.modules[name]
# Invalid marshalled data in frozen.c could case the interpreter to

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

case/cause

import __hello__
self.assertEqual(out.getvalue(), 'Hello world!\n')

@impl_detail('code object line table', cpython=True)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a small nitpick: cpython arg is not needed and other uses of @impl_detail in tests leave it out (with just one exception).

@github-actionsgithub-actionsBot removed the stale Stale PR or inactive for long period of time. label Aug 4, 2022

@iritkatrieliritkatriel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has merge conflicts now.

@bedevere-bot

Copy link
Copy Markdown

When you're done making the requested changes, leave the comment: I have made the requested changes; please review again.

@nascheme

Copy link
Copy Markdown
MemberAuthor

This PR seems obsolete now since Eric Snow added some tests to test_frozen (e.g. gh-28664). Closing it and the issue.

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changesskip newstestsTests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@nascheme@bedevere-bot@akulakov@iritkatriel@the-knights-who-say-ni@ezio-melotti