Skip to content

PoC: tests for defuse_stdlib#11

Open
amadev wants to merge 1 commit into
tiran:mainfrom
amadev:master
Open

PoC: tests for defuse_stdlib#11
amadev wants to merge 1 commit into
tiran:mainfrom
amadev:master

Conversation

@amadev
Copy link
Copy Markdown

@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
Copy Markdown

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

@liroy788
Copy link
Copy Markdown

liroy788 commented Jul 4, 2021

Thx

@liroy788
Copy link
Copy Markdown

liroy788 commented Jul 4, 2021

Dziękuję.

Comment thread defusedxml/common.py
if name.startswith("_") or name not in stdlib_names:
continue
setattr(stdlib_mod, name, obj)
if PY3:
Copy link
Copy Markdown

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