diff options
Diffstat (limited to 'test/Deprecated/Options')
-rw-r--r-- | test/Deprecated/Options/BoolOption.py | 6 | ||||
-rw-r--r-- | test/Deprecated/Options/PackageOption.py | 8 | ||||
-rw-r--r-- | test/Deprecated/Options/help.py | 12 |
3 files changed, 3 insertions, 23 deletions
diff --git a/test/Deprecated/Options/BoolOption.py b/test/Deprecated/Options/BoolOption.py index 0955d87..ac2ecdc 100644 --- a/test/Deprecated/Options/BoolOption.py +++ b/test/Deprecated/Options/BoolOption.py @@ -28,12 +28,6 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Test the BoolOption canned Option type. """ -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') - import TestSCons test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) diff --git a/test/Deprecated/Options/PackageOption.py b/test/Deprecated/Options/PackageOption.py index 3d15de0..424e5a7 100644 --- a/test/Deprecated/Options/PackageOption.py +++ b/test/Deprecated/Options/PackageOption.py @@ -28,13 +28,7 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Test the PackageOption canned Option type. """ -import os.path - -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') +import os import TestSCons diff --git a/test/Deprecated/Options/help.py b/test/Deprecated/Options/help.py index 0b7226b..8c240e3 100644 --- a/test/Deprecated/Options/help.py +++ b/test/Deprecated/Options/help.py @@ -28,24 +28,16 @@ __revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" Test the Options help messages. """ -import os.path +import os import re -try: - True, False -except NameError: - exec('True = (0 == 0)') - exec('False = (0 != 0)') +import TestSCons str_True = str(True) str_False = str(False) -import TestSCons - test = TestSCons.TestSCons(match = TestSCons.match_re_dotall) - - workpath = test.workpath() qtpath = os.path.join(workpath, 'qt') libpath = os.path.join(qtpath, 'lib') |