diff options
author | Mats Wichmann <mats@linux.com> | 2021-03-28 13:56:17 (GMT) |
---|---|---|
committer | Mats Wichmann <mats@linux.com> | 2021-03-28 13:56:17 (GMT) |
commit | d25284fe725a38fe7b9b44dc4554645001388b62 (patch) | |
tree | 497f9fe60173eb1eab457208fdaac462c3599d0a | |
parent | 693dd796c0a155e9c63412cc944bea3e336d726d (diff) | |
download | SCons-d25284fe725a38fe7b9b44dc4554645001388b62.zip SCons-d25284fe725a38fe7b9b44dc4554645001388b62.tar.gz SCons-d25284fe725a38fe7b9b44dc4554645001388b62.tar.bz2 |
Drop the local CLVar class from EnvironmentTests
The one from Util is almost the same, and the tests should
be stressing the "real" one anyway.
Signed-off-by: Mats Wichmann <mats@linux.com>
-rwxr-xr-x | CHANGES.txt | 3 | ||||
-rw-r--r-- | SCons/EnvironmentTests.py | 14 |
2 files changed, 5 insertions, 12 deletions
diff --git a/CHANGES.txt b/CHANGES.txt index 31b3fb1..bf9ddff 100755 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -45,6 +45,9 @@ RELEASE VERSION/DATE TO BE FILLED IN LATER - Remove long-deprecated construction variables PDFCOM, WIN32_INSERT_DEF, WIN32DEFPREFIX, WIN32DEFSUFFIX, WIN32EXPPREFIX, WIN32EXPSUFFIX. All have been replaced by other names since at least 1.0. + - Remove local copy of CLVar in EnvironmentTests unittest file - + should be testing against the production version, and they + didn't really differ. From Dillan Mills: - Add support for the (TARGET,SOURCE,TARGETS,SOURCES,CHANGED_TARGETS,CHANGED_SOURCES}.relpath property. diff --git a/SCons/EnvironmentTests.py b/SCons/EnvironmentTests.py index c2d5087..88577ba 100644 --- a/SCons/EnvironmentTests.py +++ b/SCons/EnvironmentTests.py @@ -32,6 +32,7 @@ from collections import UserDict as UD, UserList as UL import TestCmd +import SCons.Warnings from SCons.Environment import ( Environment, NoSubstitutionProxy, @@ -39,7 +40,7 @@ from SCons.Environment import ( SubstitutionEnvironment, is_valid_construction_var, ) -import SCons.Warnings +from SCons.Util import CLVar def diff_env(env1, env2): @@ -131,17 +132,6 @@ class Scanner: return self.name - -class CLVar(UL): - def __init__(self, seq): - if isinstance(seq, str): - seq = seq.split() - UL.__init__(self, seq) - def __add__(self, other): - return UL.__add__(self, CLVar(other)) - def __radd__(self, other): - return UL.__radd__(self, CLVar(other)) - class DummyNode: def __init__(self, name): self.name = name |