summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xCHANGES.txt3
-rw-r--r--SCons/EnvironmentTests.py14
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