SIGN IN SIGN UP

Fix test_build_py when sys.dont_write_bytecode is true (#9831).

The tests now pass all combinations of -O/-OO and -B.  See also #7071
and #6292 for previous variations on the same theme.

test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
É
Éric Araujo committed
489c8ff26b673553f568266c732182346ee74acf
Parent: f33de71