Skip to content
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

[WIP] Deprecate TerminalReporter.writer #2990

Closed

Conversation

nicoddemus
Copy link
Member

Note that this is meant to be merged after #2989 and into the features branch.

@nicoddemus nicoddemus force-pushed the deprecate-tr-writer-2984 branch 2 times, most recently from 16f943a to 7dd1c3c Compare November 30, 2017 22:03
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.704% when pulling b2f9844 on nicoddemus:deprecate-tr-writer-2984 into 2947299 on pytest-dev:features.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 92.704% when pulling b2f9844 on nicoddemus:deprecate-tr-writer-2984 into 2947299 on pytest-dev:features.

@@ -153,6 +155,16 @@ def __init__(self, config, file=None):
self._progress_items_reported = 0
self._show_progress_info = self.config.getini('console_output_style') == 'progress'

@property
def writer(self):
warnings.warn(TERMINAL_REPORTER_WARNING, stacklevel=2)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i propose to rename the internal property and trigger the deprecation also on the changing of self._tw to get bad players in line

@nicoddemus nicoddemus closed this Aug 18, 2018
@nicoddemus nicoddemus deleted the deprecate-tr-writer-2984 branch August 18, 2018 22:47
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.

None yet

3 participants