<s> """<STR_LIT>""" <EOL> import sys <EOL> import unittest <EOL> from test . test_support import run_unittest <EOL> from distutils . errors import DistutilsPlatformError , DistutilsByteCompileError <EOL> from distutils . util import byte_compile <EOL> class UtilTestCase ( unittest . TestCase ) : <EOL> def test_dont_write_bytecode ( self ) : <EOL> old_dont_write_bytecode = sys . dont_write_bytecode <EOL> sys . dont_write_bytecode = True <EOL> try : <EOL> self . assertRaises ( DistutilsByteCompileError , byte_compile , [ ] ) <EOL> finally : <EOL> sys . dont_write_bytecode = old_dont_write_bytecode <EOL> def test_suite ( ) : <EOL> return unittest . makeSuite ( UtilTestCase ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> run_unittest ( test_suite ( ) ) </s>
