On Thu, Jun 20, 2019, at 1:50 PM, Jonathan Vanasco wrote: > > > 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.
you can omit a specific warning using a regex. I would at least do that in this case if that's the path chosen. > > > -- > 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 sqlalchemy+unsubscr...@googlegroups.com. > To post to this group, send email to sqlalchemy@googlegroups.com. > 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 > > <https://groups.google.com/d/msgid/sqlalchemy/c33e40ea-ce30-418c-8fa9-d987f16616d7%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout. -- 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 sqlalchemy+unsubscr...@googlegroups.com. To post to this group, send email to sqlalchemy@googlegroups.com. 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/52df7bad-1423-4b24-a922-6298b5a7afea%40www.fastmail.com. For more options, visit https://groups.google.com/d/optout.