<s> """<STR_LIT>""" <EOL> from __future__ import print_function <EOL> import subprocess <EOL> import sys <EOL> from os . path import abspath , dirname , join , normpath <EOL> import inspect <EOL> from sympy . utilities . pytest import XFAIL <EOL> @ XFAIL <EOL> def test_module_imports_are_direct ( ) : <EOL> my_filename = abspath ( inspect . getfile ( inspect . currentframe ( ) ) ) <EOL> my_dirname = dirname ( my_filename ) <EOL> diagnose_imports_filename = join ( my_dirname , '<STR_LIT>' ) <EOL> diagnose_imports_filename = normpath ( diagnose_imports_filename ) <EOL> process = subprocess . Popen ( <EOL> [ <EOL> sys . executable , <EOL> normpath ( diagnose_imports_filename ) , <EOL> '<STR_LIT>' , <EOL> '<STR_LIT>' <EOL> ] , <EOL> stdout = subprocess . PIPE , <EOL> stderr = subprocess . STDOUT , <EOL> bufsize = - <NUM_LIT:1> ) <EOL> output , _ = process . communicate ( ) <EOL> assert output == '<STR_LIT>' , "<STR_LIT>" + output . decode ( ) </s>
