[ 
https://issues.apache.org/jira/browse/CASSANDRA-19450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17847893#comment-17847893
 ] 

Brad Schoening edited comment on CASSANDRA-19450 at 5/20/24 2:18 PM:
---------------------------------------------------------------------

[~smiklosovic] Sure, redirecting stderr to stdout isn't necessary for the 
pytests to pass, but if there are warnings, particularly deprecations, they 
will cause a some pytests to fail in not so obvious ways.  Keeping them 
separate allows the test to run successfully even if there are warnings in 
stderr.



was (Author: bschoeni):
[~smiklosovic] Sure, redirecting stderr to stdout isn't necessary for the 
pytests to pass, but if there are warnings, particularly deprecations, they 
will cause a some pytests to fail not so obvious ways.  Keeping them separate 
allows the test to run successfully even if there are warnings in stderr.


> Hygiene updates for warnings and pytests
> ----------------------------------------
>
>                 Key: CASSANDRA-19450
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-19450
>             Project: Cassandra
>          Issue Type: Improvement
>          Components: CQL/Interpreter
>            Reporter: Brad Schoening
>            Assignee: Brad Schoening
>            Priority: Low
>             Fix For: 5.x
>
>
>  
>  * Update 'Warning' message to write to stderr
>  * -Replace TimeoutError Exception with builtin (since Python 3.3)-
>  * -Remove re.pattern_type (removed since Python 3.7)-
>  * Fix mutable arg [] in read_until()
>  * Remove redirect of stderr to stdout in pytest fixture with tty=false; 
> Deprecation warnings can otherwise fail unit tests when stdout & stderr 
> output is combined.
>  * Fix several pycodestyle issues



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to