<s> import pytest <EOL> from cocopot . _compat import * <EOL> import copy <EOL> import traceback <EOL> import sys <EOL> def test_compat ( ) : <EOL> assert to_bytes ( None ) == None <EOL> assert to_unicode ( None ) == None <EOL> with pytest . raises ( ZeroDivisionError ) : <EOL> try : <EOL> s = <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> exc_type , exc_value , tb = sys . exc_info ( ) <EOL> reraise ( exc_type , exc_value , tb ) <EOL> with pytest . raises ( ZeroDivisionError ) : <EOL> try : <EOL> s = <NUM_LIT:1> / <NUM_LIT:0> <EOL> except : <EOL> exc_type , exc_value , tb = sys . exc_info ( ) <EOL> reraise ( exc_type , exc_value , None ) </s>
