Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Closed
nascheme wants to merge 2 commits into
python:mainpython/cpython:mainfrom
nascheme:frozen_lines_testnascheme/cpython:frozen_lines_testCopy head branch name to clipboard
Closed

bpo-43381: Add frozen module co_lines() test#24712
nascheme wants to merge 2 commits into
python:mainpython/cpython:mainfrom
nascheme:frozen_lines_testnascheme/cpython:frozen_lines_testCopy head branch name to clipboard

Conversation

@nascheme

@nascheme nascheme commented Mar 3, 2021

Copy link
Copy Markdown
Member

@nascheme

nascheme commented Mar 3, 2021

Copy link
Copy Markdown
Member Author

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

@github-actions

github-actions Bot commented Apr 3, 2021

Copy link
Copy Markdown

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

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label Apr 3, 2021
Comment thread Lib/test/test_frozen.py
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

Comment thread Lib/test/test_frozen.py
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-actions github-actions Bot removed the stale Stale PR or inactive for long period of time. label Aug 4, 2022

@iritkatriel iritkatriel 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
Member Author

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 free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting changes skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.