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

PoC: tests for defuse_stdlib #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

PoC: tests for defuse_stdlib #11

wants to merge 1 commit into from

Conversation

amadev
Copy link

@amadev amadev commented Nov 9, 2017

Idea: make sure the standard module after a defuse_stdlib call
works the same way as an appropriate defused module.

The same test suite is used but TestClass.module is replaced
by a standard module.

Idea: make sure the standard module after a defuse_stdlib call
works the same way as an appropriate defused module.

The same test suite is used but TestClass.module is replaced
by a standard module.
@c00kiemon5ter
Copy link

I'd be nice to have such tests and make sure that defuse_stdlib() works as expected.

@liroy788
Copy link

liroy788 commented Jul 4, 2021

Thx

@liroy788
Copy link

liroy788 commented Jul 4, 2021

Dziękuję.

if name.startswith("_") or name not in stdlib_names:
continue
setattr(stdlib_mod, name, obj)
if PY3:
Copy link

Choose a reason for hiding this comment

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants