On Thursday, June 20, 2019 at 3:14:06 AM UTC-4, Chris Withers wrote:
>
>
> How can I indicate in my code that this is intentional and no warning 
> should be omitted? 
>


Personal option:

I would not mask these.  I would let them persist and probably add a 
unittest to ensure they are invoked in certain situations.

Masking them runs the risk of masking other SqlAlchemy warnings that you'll 
want to know about.

I once masked SAWarnings to clear the 'Python2 String in a Unicode Column' 
warnings.  That resulted in missing a lot of useful SqlAlchemy warnings, 
which led to the creation of Technical Debt and dedicating a sprint (or 
two) to critical fixes and upgrades.  Had those warnings not been 
suppressed, most of the issues would never have manifested because of 
proper planning. 


-- 
SQLAlchemy - 
The Python SQL Toolkit and Object Relational Mapper

http://www.sqlalchemy.org/

To post example code, please provide an MCVE: Minimal, Complete, and Verifiable 
Example.  See  http://stackoverflow.com/help/mcve for a full description.
--- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sqlalchemy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sqlalchemy/c33e40ea-ce30-418c-8fa9-d987f16616d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to