<s> """<STR_LIT>""" <EOL> from __future__ import unicode_literals <EOL> import pytest <EOL> import requests <EOL> from six import string_types <EOL> def is_string_type ( obj ) : <EOL> """<STR_LIT>""" <EOL> return any ( isinstance ( obj , strtype ) <EOL> for strtype in string_types ) <EOL> def has_connection ( ) : <EOL> try : <EOL> requests . get ( "<STR_LIT>" ) <EOL> return True <EOL> except requests . ConnectionError : <EOL> return False <EOL> requires_internet = pytest . mark . skipif ( not has_connection ( ) , reason = "<STR_LIT>" ) </s>
