#NEWLINE# def test_load_path_element_coerce( self , space , tmpdir ) : #NEWLINE# #INDENT# f = tmpdir . join ( 't.rb' ) #NEWLINE# f . write ( '\n        $success = true\n        ' ) #NEWLINE# w_res = space . execute ( ( '\n        class A\n          def to_path\n            "%s"\n          end\n        end\n        $LOAD_PATH.unshift A.new\n        require \'t\'\n        return $success\n        ' % tmpdir ) ) #NEWLINE# assert ( w_res is w_res . w_true )