summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Blevins <wblevins001@gmail.com>2016-09-24 02:05:34 -0400
committerWilliam Blevins <wblevins001@gmail.com>2016-09-24 02:05:34 -0400
commit8a5bbc171413896cda7c3d401727858ecaa80bf7 (patch)
tree9f1f227334ac5874d079dadb6ad288b6b5e7524e
parent456aa2a602e7dc610ca0beeaee7ce68be2dc356d (diff)
downloadscons-8a5bbc171413896cda7c3d401727858ecaa80bf7.tar.gz
Updated remaining Fortran tests to use fixture over import.
-rw-r--r--test/Fortran/F03COM.py4
-rw-r--r--test/Fortran/F03FILESUFFIXES.py4
-rw-r--r--test/Fortran/F03FILESUFFIXES2.py4
-rw-r--r--test/Fortran/F03FLAGS.py4
-rw-r--r--test/Fortran/F08.py4
-rw-r--r--test/Fortran/F08COM.py4
-rw-r--r--test/Fortran/F08FILESUFFIXES.py4
-rw-r--r--test/Fortran/F08FILESUFFIXES2.py4
-rw-r--r--test/Fortran/F08FLAGS.py4
-rw-r--r--test/Fortran/F77.py4
-rw-r--r--test/Fortran/F77COM.py4
-rw-r--r--test/Fortran/F77FILESUFFIXES.py4
-rw-r--r--test/Fortran/F77FILESUFFIXES2.py4
-rw-r--r--test/Fortran/F77FLAGS.py4
-rw-r--r--test/Fortran/F90.py4
-rw-r--r--test/Fortran/F90COM.py4
-rw-r--r--test/Fortran/F90FILESUFFIXES.py4
-rw-r--r--test/Fortran/F90FILESUFFIXES2.py4
-rw-r--r--test/Fortran/F90FLAGS.py4
-rw-r--r--test/Fortran/F95.py4
-rw-r--r--test/Fortran/F95COM.py4
-rw-r--r--test/Fortran/F95FILESUFFIXES.py4
-rw-r--r--test/Fortran/F95FILESUFFIXES2.py4
-rw-r--r--test/Fortran/F95FLAGS.py4
-rw-r--r--test/Fortran/FORTRAN.py4
-rw-r--r--test/Fortran/FORTRANCOM.py4
-rw-r--r--test/Fortran/FORTRANFILESUFFIXES.py4
-rw-r--r--test/Fortran/FORTRANFILESUFFIXES2.py4
-rw-r--r--test/Fortran/FORTRANFLAGS.py4
-rw-r--r--test/Fortran/FORTRANPPFILESUFFIXES.py4
30 files changed, 42 insertions, 78 deletions
diff --git a/test/Fortran/F03COM.py b/test/Fortran/F03COM.py
index b0d1f79f..dc1523e6 100644
--- a/test/Fortran/F03COM.py
+++ b/test/Fortran/F03COM.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/F03FILESUFFIXES.py b/test/Fortran/F03FILESUFFIXES.py
index ffc21692..b1d2b939 100644
--- a/test/Fortran/F03FILESUFFIXES.py
+++ b/test/Fortran/F03FILESUFFIXES.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F03FILESUFFIXES2.py b/test/Fortran/F03FILESUFFIXES2.py
index 77a601fe..44be880d 100644
--- a/test/Fortran/F03FILESUFFIXES2.py
+++ b/test/Fortran/F03FILESUFFIXES2.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F03FLAGS.py b/test/Fortran/F03FLAGS.py
index 0c5bf935..b11b780c 100644
--- a/test/Fortran/F03FLAGS.py
+++ b/test/Fortran/F03FLAGS.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F08.py b/test/Fortran/F08.py
index 35df37c3..b61b8617 100644
--- a/test/Fortran/F08.py
+++ b/test/Fortran/F08.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F08COM.py b/test/Fortran/F08COM.py
index 783a1635..363c2d01 100644
--- a/test/Fortran/F08COM.py
+++ b/test/Fortran/F08COM.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/F08FILESUFFIXES.py b/test/Fortran/F08FILESUFFIXES.py
index 84634030..41059afe 100644
--- a/test/Fortran/F08FILESUFFIXES.py
+++ b/test/Fortran/F08FILESUFFIXES.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F08FILESUFFIXES2.py b/test/Fortran/F08FILESUFFIXES2.py
index 39bba44e..e53cee1a 100644
--- a/test/Fortran/F08FILESUFFIXES2.py
+++ b/test/Fortran/F08FILESUFFIXES2.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F08FLAGS.py b/test/Fortran/F08FLAGS.py
index 866ea2cf..34f3d759 100644
--- a/test/Fortran/F08FLAGS.py
+++ b/test/Fortran/F08FLAGS.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F77.py b/test/Fortran/F77.py
index 0ebd7ee3..300df851 100644
--- a/test/Fortran/F77.py
+++ b/test/Fortran/F77.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F77COM.py b/test/Fortran/F77COM.py
index 1efbe05a..4e15eea3 100644
--- a/test/Fortran/F77COM.py
+++ b/test/Fortran/F77COM.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/F77FILESUFFIXES.py b/test/Fortran/F77FILESUFFIXES.py
index 2070ff2e..1715ce98 100644
--- a/test/Fortran/F77FILESUFFIXES.py
+++ b/test/Fortran/F77FILESUFFIXES.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F77FILESUFFIXES2.py b/test/Fortran/F77FILESUFFIXES2.py
index 52e4d686..1938af18 100644
--- a/test/Fortran/F77FILESUFFIXES2.py
+++ b/test/Fortran/F77FILESUFFIXES2.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F77FLAGS.py b/test/Fortran/F77FLAGS.py
index 342adac6..8e972ec3 100644
--- a/test/Fortran/F77FLAGS.py
+++ b/test/Fortran/F77FLAGS.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myg77.py', r"""
import getopt
diff --git a/test/Fortran/F90.py b/test/Fortran/F90.py
index d7c73c60..bbceaac1 100644
--- a/test/Fortran/F90.py
+++ b/test/Fortran/F90.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F90COM.py b/test/Fortran/F90COM.py
index 8981bb37..e3be2a1b 100644
--- a/test/Fortran/F90COM.py
+++ b/test/Fortran/F90COM.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/F90FILESUFFIXES.py b/test/Fortran/F90FILESUFFIXES.py
index ae61a84f..47da08ee 100644
--- a/test/Fortran/F90FILESUFFIXES.py
+++ b/test/Fortran/F90FILESUFFIXES.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F90FILESUFFIXES2.py b/test/Fortran/F90FILESUFFIXES2.py
index ab62ca7e..7039530c 100644
--- a/test/Fortran/F90FILESUFFIXES2.py
+++ b/test/Fortran/F90FILESUFFIXES2.py
@@ -26,14 +26,12 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
-
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F90FLAGS.py b/test/Fortran/F90FLAGS.py
index f0b30038..8eaa9387 100644
--- a/test/Fortran/F90FLAGS.py
+++ b/test/Fortran/F90FLAGS.py
@@ -27,14 +27,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F95.py b/test/Fortran/F95.py
index e7745b16..56c6edd7 100644
--- a/test/Fortran/F95.py
+++ b/test/Fortran/F95.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F95COM.py b/test/Fortran/F95COM.py
index 6ef6eb07..47616352 100644
--- a/test/Fortran/F95COM.py
+++ b/test/Fortran/F95COM.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/F95FILESUFFIXES.py b/test/Fortran/F95FILESUFFIXES.py
index 119629df..8643a249 100644
--- a/test/Fortran/F95FILESUFFIXES.py
+++ b/test/Fortran/F95FILESUFFIXES.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F95FILESUFFIXES2.py b/test/Fortran/F95FILESUFFIXES2.py
index d89839ba..d267a243 100644
--- a/test/Fortran/F95FILESUFFIXES2.py
+++ b/test/Fortran/F95FILESUFFIXES2.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/F95FLAGS.py b/test/Fortran/F95FLAGS.py
index 8c3ce093..525b8cc9 100644
--- a/test/Fortran/F95FLAGS.py
+++ b/test/Fortran/F95FLAGS.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/FORTRAN.py b/test/Fortran/FORTRAN.py
index 9a01fa68..c03698fd 100644
--- a/test/Fortran/FORTRAN.py
+++ b/test/Fortran/FORTRAN.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myg77.py', r"""
import getopt
diff --git a/test/Fortran/FORTRANCOM.py b/test/Fortran/FORTRANCOM.py
index 6948b965..bf84d262 100644
--- a/test/Fortran/FORTRANCOM.py
+++ b/test/Fortran/FORTRANCOM.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import sys
diff --git a/test/Fortran/FORTRANFILESUFFIXES.py b/test/Fortran/FORTRANFILESUFFIXES.py
index 92e30ead..e4b61921 100644
--- a/test/Fortran/FORTRANFILESUFFIXES.py
+++ b/test/Fortran/FORTRANFILESUFFIXES.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/FORTRANFILESUFFIXES2.py b/test/Fortran/FORTRANFILESUFFIXES2.py
index 8ba09623..79231ac9 100644
--- a/test/Fortran/FORTRANFILESUFFIXES2.py
+++ b/test/Fortran/FORTRANFILESUFFIXES2.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/FORTRANFLAGS.py b/test/Fortran/FORTRANFLAGS.py
index 150000a4..7dbc0492 100644
--- a/test/Fortran/FORTRANFLAGS.py
+++ b/test/Fortran/FORTRANFLAGS.py
@@ -26,14 +26,14 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
test = TestSCons.TestSCons()
_exe = TestSCons._exe
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt
diff --git a/test/Fortran/FORTRANPPFILESUFFIXES.py b/test/Fortran/FORTRANPPFILESUFFIXES.py
index e0c69749..2791b916 100644
--- a/test/Fortran/FORTRANPPFILESUFFIXES.py
+++ b/test/Fortran/FORTRANPPFILESUFFIXES.py
@@ -30,14 +30,14 @@ import string
import sys
import TestSCons
-from common import write_fake_link
+
_python_ = TestSCons._python_
_exe = TestSCons._exe
test = TestSCons.TestSCons()
-write_fake_link(test)
+test.file_fixture('mylink.py')
test.write('myfortran.py', r"""
import getopt