-
Notifications
You must be signed in to change notification settings - Fork 4
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: Reconfigure existing streams #78
Open
jayvdb
wants to merge
16
commits into
bskinn:master
Choose a base branch
from
jayvdb:reconf
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Commits on Sep 9, 2019
-
Backport contextlib.AbstractContextManager
Creates compat.py with backport of contextlib.AbstractContextManager to Python 3.4, so that the external interface of StdioManager has a consistent MRO irrespective of the Python version.
Configuration menu - View commit details
-
Copy full SHA for e71b42f - Browse repository at this point
Copy the full SHA e71b42fView commit details -
Configuration menu - View commit details
-
Copy full SHA for fe5791a - Browse repository at this point
Copy the full SHA fe5791aView commit details -
StdioTupleBase combines MultiItemTuple and TupleContextManager, and provides properties `stdin`, `stdout` and `stderr` for literate referencing the three members of the tuple. MultiItemTuple provides _map(), _all() and _any() for iterables, with suppress versions able to ignore exceptions. Base TupleContextManager creates a consistent MRO of tuple and AbstractContextManager. ClosingStdioTuple is a sample context manager which performs close() on each item in the tuple. TextIOTuple requires items to be a TextIOBase. AnyIOTuple can be used to create either a TextIOTuple or a FakeIOTuple, depending on whether the items are all a TextIOBase. This will allow attaching different implementations to each. AnyIOTuple is used to capture `sys.__std*__` and `sys.std*` as they existed at module import.
Configuration menu - View commit details
-
Copy full SHA for 9446d6e - Browse repository at this point
Copy the full SHA 9446d6eView commit details -
DEV: Allow streams to not be context managers
Many existing stdio capture and wrapper streams are only partial implementations, most commonly missing `__enter__` and `__exit__`. When StdioManager needs to integrate those streams into its service it needs to suppress exceptions caused by those missing methods.
Configuration menu - View commit details
-
Copy full SHA for 01d3d31 - Browse repository at this point
Copy the full SHA 01d3d31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1cf24da - Browse repository at this point
Copy the full SHA 1cf24daView commit details
Commits on Sep 10, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 767cd97 - Browse repository at this point
Copy the full SHA 767cd97View commit details -
Configuration menu - View commit details
-
Copy full SHA for e7af637 - Browse repository at this point
Copy the full SHA e7af637View commit details -
Configuration menu - View commit details
-
Copy full SHA for 773140f - Browse repository at this point
Copy the full SHA 773140fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 46cc6e0 - Browse repository at this point
Copy the full SHA 46cc6e0View commit details -
Also fix test_capture_stderr_warn: Use always filter
Configuration menu - View commit details
-
Copy full SHA for 52276a3 - Browse repository at this point
Copy the full SHA 52276a3View commit details -
Configuration menu - View commit details
-
Copy full SHA for ecfb3c5 - Browse repository at this point
Copy the full SHA ecfb3c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 477cc33 - Browse repository at this point
Copy the full SHA 477cc33View commit details -
Configuration menu - View commit details
-
Copy full SHA for 60237c4 - Browse repository at this point
Copy the full SHA 60237c4View commit details -
Configuration menu - View commit details
-
Copy full SHA for cfe4cf2 - Browse repository at this point
Copy the full SHA cfe4cf2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5fb32df - Browse repository at this point
Copy the full SHA 5fb32dfView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d9570f - Browse repository at this point
Copy the full SHA 3d9570fView commit details
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.