Anonymous avatar Anonymous committed 13902df

Remove more unnecessary imports from test scripts.

Comments (0)

Files changed (117)

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/AR/ARFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/AS/ASCOMSTR.py

 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/AS/ASFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/AS/ASPPCOM.py

 Test the ability to configure the $ASPPCOM construction variable.
 """
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_

test/AS/ASPPCOMSTR.py

 """
 
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/AS/ASPPFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 Verify correct use of the live 'ml' assembler.
 """
 
-import os
 import string
 import sys
 

test/Actions/actions.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_

test/Actions/addpost-link.py

 packaged by Gary Oberbrunner.
 """
 
-import string
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Actions/pre-post.py

 
 import os
 import stat
-import sys
+
 import TestSCons
 
 _exe = TestSCons._exe

test/Alias/Alias.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
+
 import TestSCons
 import TestCmd
 

test/Alias/Depends.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
+
 import TestSCons
 import TestCmd
 
 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/CC/CCCOMSTR.py

 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/CC/SHCCCOM.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
+
 import TestSCons
 
 """

test/CC/SHCCCOMSTR.py

 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/CFILESUFFIX.py

 """
 
 import os
-import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 if sys.platform == 'win32':
 
     test.write('mylink.py', r"""
-import getopt
-import os
 import sys
 args = sys.argv[1:]
 while args:
 
     test.write('mylink.py', r"""
 import getopt
-import os
 import sys
 opts, args = getopt.getopt(sys.argv[1:], 'o:s:')
 for opt, arg in opts:

test/CXX/CXXCOM.py

 Test the ability to configure the $CXXCOM construction variable.
 """
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_

test/CXX/CXXFILESUFFIX.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/CXX/SHCXX.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/CXX/SHCXXCOM.py

 Test the ability to configure the $SHCXXCOM construction variable.
 """
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_

test/CXX/SHCXXCOMSTR.py

 the shared object C++ compilation output.
 """
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import sys
 import TestSCons
 
 python = TestSCons.python

test/CommandGenerator.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
+
 import TestSCons
 
 python = TestSCons.python
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
-
 import TestSCons
 
 _exe = TestSCons._exe

test/DVIPDF/DVIPDF.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
 import string
 
 import TestSCons

test/DVIPDF/DVIPDFFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
 import string
 
 import TestSCons

test/DVIPS/DVIPS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
 import string
 
 import TestSCons

test/DVIPS/DVIPSFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
 import string
 
 import TestSCons
 """
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/Deprecated/BuildDir.py

 
 test.subdir(['work1', 'src'])
 test.write(['work1', 'src', 'SConscript'], """
-import os
 import os.path
 
 def buildIt(target, source, env):
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
 
 import TestSCons
 

test/Environment.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
-import sys
 
 _python_ = TestSCons._python_
 
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
+import os
+import sys
+
 import TestSCons
-import sys
-import os
-import TestCmd
 
-test = TestSCons.TestSCons(match = TestCmd.match_re)
+test = TestSCons.TestSCons(match = TestSCons.match_re)
 
 if sys.platform != 'win32':
     msg = "Skipping test on non-Windows platform '%s'\n" % sys.platform
 # Test the basics
 
 test.write('SConstruct',"""
-import os.path
 import os
 
 env = Environment(CPPPATH = '${TARGET.dir}',
 test.subdir('src','build')
 
 test.write('src/SConscript',"""
-import os.path
-
 Import('env')
 
 local = env.Clone(WINDOWS_INSERT_DEF = 1)
 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/Java/JAVAC.py

 """
 
 import os
-import sys
 
 import TestSCons
 

test/Java/RMIC.py

 
 import os
 import string
-import sys
 
 import TestSCons
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LEX/LEXFLAGS.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/LINK.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/LINKCOMSTR.py

 """
 
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/LINKFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/SHLINK.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/SHLINKCOM.py

 Test the ability to configure the $SHLINKCOM construction variable.
 """
 
-import sys
 import TestSCons
 
 _python_ = TestSCons._python_

test/LINK/SHLINKFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/MSVC/batch.py

 platform.
 """
 
-import string
-
 import TestSCons
 
 test = TestSCons.TestSCons()

test/MSVC/msvc.py

 of a precompiled header with the $CCFLAGS variable.
 """
 
-import os
 import sys
 import time
 

test/PRINT_CMD_LINE_FUNC.py

 Test the PRINT_CMD_LINE_FUNC construction variable.
 """
 
-import sys
-import TestCmd
 import TestSCons
 
 _exe = TestSCons._exe
 _obj = TestSCons._obj
 
-test = TestSCons.TestSCons(match = TestCmd.match_re)
+test = TestSCons.TestSCons(match = TestSCons.match_re)
 
 
 test.write('SConstruct', r"""

test/QT/QTFLAGS.py

 """
 
 import TestSCons
-import os.path
 
 _python_ = TestSCons._python_
 _exe = TestSCons._exe

test/RANLIB/RANLIB.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/RANLIB/RANLIBFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/Repository/M4.py

 """
 
 import os
-import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGEN.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import os
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGENCLIENTFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGENFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGENHEADERFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGENSERVICEFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Rpcgen/RPCGENXDRFLAGS.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import string
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/Scanner/generated.py

 complexity is valuable in its own right.
 """
 
-import sys
-
 import TestSCons
 
 test = TestSCons.TestSCons()
 ###
 
 experimenttop = r"%s"
-
 import os
-import os.path
-import string
 import Mylib
 
 BStaticLibMerge = Builder(generator = Mylib.Gen_StaticLibMerge)
 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TAR/TARCOM.py

 Test the ability to configure the $TARCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TAR/TARFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/LATEX.py

 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/LATEX2.py

 Validate that we can produce several .pdf at once from several sources.
 """
 
-import os
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/LATEXCOM.py

 Test the ability to configure the $LATEXCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/LATEXCOMSTR.py

 the C compilation output.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/LATEXFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFLATEX.py

 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFLATEXCOM.py

 Test the ability to configure the $PDFLATEXCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFLATEXCOMSTR.py

 the C compilation output.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFLATEXFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFTEX.py

 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFTEXCOM.py

 Test the ability to configure the $PDFTEXCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFTEXCOMSTR.py

 the C compilation output.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/PDFTEXFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/TEXCOM.py

 Test the ability to configure the $TEXCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/TEXCOMSTR.py

 the C compilation output.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/TEXFLAGS.py

 
 import os
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/dryrun.py

 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/rename_result.py

 target name provided by the user.
 """
 
-import os
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/TEX/usepackage.py

 and that we can use this to wrap calls to the real latex utility.
 """
 
-import os
-
 import TestSCons
 
 _python_ = TestSCons._python_
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import re
-import sys
 
 import TestSCons
 import TestCmd

test/VariantDir/VariantDir.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import string
-import sys
+
 import TestSCons
 
 _exe = TestSCons._exe
 
 test.subdir(['work1', 'src'])
 test.write(['work1', 'src', 'SConscript'], """
-import os
 import os.path
 
 def buildIt(target, source, env):

test/YACC/YACC.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/YACC/YACCFLAGS.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import string
 import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 import os
 import stat
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/ZIP/ZIPCOM.py

 Test the ability to configure the $ZIPCOM construction variable.
 """
 
-import sys
-
 import TestSCons
 
 _python_ = TestSCons._python_

test/builderrors.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
 
 import TestSCons
 

test/exceptions.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import re
-import sys
 
-import TestCmd
 import TestSCons
 
 _python_ = TestSCons._python_
 
-test = TestSCons.TestSCons(match = TestCmd.match_re_dotall)
+test = TestSCons.TestSCons(match = TestSCons.match_re_dotall)
 
 SConstruct_path = test.workpath('SConstruct')
 

test/explain/basic.py

 
 import os
 import string
-import sys
 
 import TestSCons
 

test/file-names.py

 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
-import sys
 import TestSCons
 
 test = TestSCons.TestSCons()

test/ignore-command.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_

test/implicit/IMPLICIT_COMMAND_DEPENDENCIES.py

 is added to targets.
 """
 
-import os
-
 import TestSCons
 
 python = TestSCons.python

test/multiline.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
+
 import TestSCons
 
 python = TestSCons.python
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
 
 import TestSCons
 

test/option--Q.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
 
 import TestSCons
 

test/option--max-drift.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 """
 
 import os
-import sys
 
 import TestSCons
 
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 
 import os.path
 import string
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
+
 import TestSCons
 
 _python_ = TestSCons._python_
 
 import os
 import re
-import sys
 
-import TestCmd
 import TestSCons
 
 _python_ = TestSCons._python_
 
 # test Configure-calls in conjunction with -n
 test.subdir('configure')
-test.match_func = TestCmd.match_re_dotall
+test.match_func = TestSCons.match_re_dotall
 test.write('configure/SConstruct',
 """def CustomTest(context):
     def userAction(target,source,env):
 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os.path
-import sys
 
 import TestSCons
 

test/option/debug-time.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import TestSCons
-import sys
 import string
 import re
 import time

test/option/md5-chunksize.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import string
-import sys
 
 import TestSCons
 

test/packaging/msi/package.py

 test.write( 'file2.exe', "file2" )
 
 test.write('SConstruct', """
-import os
-
 env  = Environment(tools=['default', 'packaging'])
 
 f1  = env.Install( '/usr/' , 'file1.exe'  )
 test.write( 'file5.dll', "file5" )
 
 test.write('SConstruct', """
-import os
 env = Environment(tools=['default', 'packaging'])
 f1  = env.Install( '/usr/' , 'file1.exe'  )
 f2  = env.Install( '/usr/' , 'file2.exe'  )

test/sconsign/script/SConsignFile.py

 using the signatures in an SConsignFile().
 """
 
-import os
 import re
 
 import TestSCons

test/silent-command.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import os
-import sys
 
 import TestSCons
 

test/site_scons/sys-path.py

 """)
 
 test.write(['sub1', 'SConscript'], """
-import sys
 import testmod2 # This call did not work before the fix
 
 """)
 
 test.write('SConstruct', """
-import sys
 import testmod1 # this always worked
 SConscript('sub1/SConscript')
 """)

test/special-filenames.py

 __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
 
 import string
-import sys
 
 import TestSCons
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.