-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Tests on Python 3 #845
Merged
Merged
Tests on Python 3 #845
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
055cc6c
Function to refactor print statements in doctests to print() function…
takluyver c4afd4e
Various fixes to tests in IPython.utils.
takluyver 0707dc5
Various fixes for tests in IPython.testing.
takluyver d5ec58f
Update irunner - needs work on pexpect to work in Python 3.
takluyver 15d093b
Add function to handle u'abc' (Python 2) vs. 'abc' (Python 3) in doct…
takluyver 329e236
Fix various tests in IPython.core for Python 3.
takluyver a2d83e4
Fix almost all IPython.core tests for Python 3.
takluyver edafab0
Make page function more robust.
takluyver 1fd2596
Fix some more tests for Python 3.
takluyver efa3dcd
Fix test that got broken under Python 2
takluyver 30b93ed
Fix IPython.utils.sysinfo for Python 3.
takluyver 7dc93ef
Add AssertPrints context manager to check output from tests.
takluyver 765ba4e
Update IPython.utils.path to use stdlib warnings module.
takluyver a55dc7b
Use AssertPrints in test_magic.
takluyver 12c5179
Use AssertPrints in tests for autoreload extension.
takluyver 48ab7c9
Follow Fernando's suggestions.
takluyver 366c633
Fix for paging docstrings.
takluyver 5ada34d
Add simple smoketest for page._detect_screen_size.
takluyver File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now that this is a function, it should have a docstring explaining its call signature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should also be possible to add a small test for this guy, if nothing else at least a smoke test that validates its call form. Even simple tests like that do help catch regressions and api changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll do a docstring, but the reason I pulled it out like this was that the code was throwing an exception in the test suite (Python 3 termios didn't seem to like sys.stdout not being an actual OS stream), so I wanted to put a try/except around it. So I'm not sure how we can really test it in isolation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, the test could be just
at least that will call it and make sure that if we change the signature or a different exception is thrown, we see it.
As I said, it's just smoke testing so trivial to implement, but better than nothing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, done one like that.