Skip to content

Precision surgery to take out sqlalchemy test failures - #140

Merged
gvanrossum merged 2 commits into
masterfrom
sqlsurgery
Apr 11, 2016
Merged

gvanrossum merged 2 commits into
masterfrom
sqlsurgery

Conversation

@gvanrossum

Copy link
Copy Markdown
Member

The stubs probably no longer make sense, but there should be enough left for someone to fix them.

All I did was out ## in front of various lines or base classes until the tests pass.

Fixes #137.

@gvanrossum

Copy link
Copy Markdown
Member Author

Sorry to keep bothering you, @timabbott, but maybe you can say whether there's a better way to do what I am trying to do in this PR?

I also suspect we've run into some kind of import cycle, so possibly if and when mypy improves its handling of those we could also reconsider this.

@timabbott

Copy link
Copy Markdown
Contributor

Yeah, that approach looks reasonable given the situation. In general I think it's probably best to avoid adding half-complete broken stubs like the original sqlalchemy ones in the first place, since it's kinda counterproductive (creates lots of errors for anyone using the relevant parts of the module, that wouldn't have been present if we'd just not had stubs). Fortunately I think the CI will prevent from that happening again in the future.

@gvanrossum
gvanrossum merged commit 4f483dc into master Apr 11, 2016
@gvanrossum
gvanrossum deleted the sqlsurgery branch April 11, 2016 04:44
jukebox pushed a commit to jukebox/typeshed that referenced this pull request Apr 11, 2016
* Comment out parts of the sqlalchemy stubs to make tests pass.

* Run all tests, one step per Python version.
momandine pushed a commit to momandine/typeshed that referenced this pull request Jul 5, 2016
hswong3i pushed a commit to alvistack/python-typeshed that referenced this pull request May 25, 2025
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.

runtests.py trips over sqlalchemy

2 participants