Skip to content

Python: modernise pyramid library#2181

Merged
tausbn merged 5 commits intogithub:masterfrom
RasmusWL:python-modernise-pyramid-library
Nov 15, 2019
Merged

Python: modernise pyramid library#2181
tausbn merged 5 commits intogithub:masterfrom
RasmusWL:python-modernise-pyramid-library

Conversation

@RasmusWL
Copy link
Copy Markdown
Member

Will make internal PR to remove the pyramid tests from the internal repo

Like the one existing in ControlFlowNode.

This is useful for checking class of value being poitned to, as

    expr.pointsTo().getClass() = someClass

Without this you need to do

    exists(Value v | v.getClass() = someClass | expr.pointsTo(v))
Tested with pyramid 1.10.4 and python 3.6.8
Use minimal mock instead of full library
@RasmusWL RasmusWL added depends on internal PR This PR should only be merged in sync with an internal Semmle PR Python labels Oct 23, 2019
@RasmusWL RasmusWL requested a review from tausbn October 23, 2019 14:31
@RasmusWL
Copy link
Copy Markdown
Member Author

Although it's not 100% clear from the commit history, I did not have to change any of the .expected files.

@tausbn tausbn merged commit 78109db into github:master Nov 15, 2019
@RasmusWL RasmusWL deleted the python-modernise-pyramid-library branch November 15, 2019 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

depends on internal PR This PR should only be merged in sync with an internal Semmle PR Python

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants