pytest supports -O[O] since 2.1.0 https://pytest.org/latest/announce/release-2.1.0.html
On September 28, 2015 at 2:14:41 AM, Glyph Lefkowitz (gl...@twistedmatrix.com) wrote: > If running under -O[O] is a supported configuration for Cryptography now, is > there a > plan to migrate to something other than py.test so that the test suite can > meaningfully > execute in that environment as well? My usual assumption is that any Python > with 'assert's > in its test suite implicitly assumes this option will never be used. > > If running the test suite is impossible in such an interpreter, then perhaps > it would > be better to detect this configuration and fail hard, rather than piecemeal > supporting > bits of it, especially if bugs like this potentially cause security issues. > > -glyph > > > On Sep 27, 2015, at 7:07 AM, Paul Kehrer wrote: > > > > PyCA cryptography 1.0.2 has been released. This release contains a security > > fix that > affects anyone running python with -O. > > > > Changelog: > > > > * SECURITY ISSUE: The OpenSSL backend prior to 1.0.2 made extensive use of > > assertions > to check response codes where our tests could not trigger a failure. However, > when Python > is run with -O these asserts are optimized away. If a user ran Python with > this flag and > got an invalid response code this could result in undefined behavior or > worse. Accordingly, > all response checks from the OpenSSL backend have been converted from assert > to a true > function call. Credit Emilia Käsper (Google Security Team) for the report. > > > > -Paul Kehrer (reaperhulk) > > _______________________________________________ > > Cryptography-dev mailing list > > Cryptography-dev@python.org > > https://mail.python.org/mailman/listinfo/cryptography-dev > _______________________________________________ > Cryptography-dev mailing list > Cryptography-dev@python.org > https://mail.python.org/mailman/listinfo/cryptography-dev > ----------------- Donald Stufft PGP: 0x6E3CBCE93372DCFA // 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA _______________________________________________ Cryptography-dev mailing list Cryptography-dev@python.org https://mail.python.org/mailman/listinfo/cryptography-dev