#NEWLINE# def test_path_from_invalid_sys_path_assignment( ) : #NEWLINE# #INDENT# SRC = dedent ( u ( "\n        import sys\n        sys.path = 'invalid'" ) ) #NEWLINE# grammar = load_grammar ( ) #NEWLINE# p = Parser ( grammar , SRC ) #NEWLINE# paths = _check_module ( Evaluator ( paths ) , p . module ) #NEWLINE# assert ( len ( paths ) > 0 ) #NEWLINE# assert ( 'invalid' not in paths )