summaryrefslogtreecommitdiffstats
path: root/SCons/UtilTests.py
diff options
context:
space:
mode:
authorAdam Gross <grossag@vmware.com>2020-11-06 17:46:12 (GMT)
committerAdam Gross <grossag@vmware.com>2020-11-06 17:46:12 (GMT)
commitcc7b28e50655960e7aab2dd8581f427a0920bf38 (patch)
tree3c9e36a05f4069bf2e8699e351043254c3edd1da /SCons/UtilTests.py
parent450b28367cdcbf10f855e43e0571915ebf9f09ca (diff)
parentebe6e9b1b2fedbe3dd44c07aa2b6739d4079879e (diff)
downloadSCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.zip
SCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.tar.gz
SCons-cc7b28e50655960e7aab2dd8581f427a0920bf38.tar.bz2
Merge branch 'master' into topic/grossag/newhashes
Diffstat (limited to 'SCons/UtilTests.py')
-rw-r--r--SCons/UtilTests.py17
1 files changed, 3 insertions, 14 deletions
diff --git a/SCons/UtilTests.py b/SCons/UtilTests.py
index 319724d..2be2672 100644
--- a/SCons/UtilTests.py
+++ b/SCons/UtilTests.py
@@ -1,5 +1,6 @@
+# MIT License
#
-# __COPYRIGHT__
+# Copyright The SCons Foundation
#
# Permission is hereby granted, free of charge, to any person obtaining
# a copy of this software and associated documentation files (the
@@ -19,9 +20,6 @@
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-#
-
-__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__"
import SCons.compat
@@ -196,11 +194,7 @@ class UtilTestCase(unittest.TestCase):
try:
node, expect, withtags = self.tree_case_1()
- if sys.version_info.major < 3:
- IOStream = io.BytesIO
- else:
- IOStream = io.StringIO
-
+ IOStream = io.StringIO
sys.stdout = IOStream()
print_tree(node, get_children)
actual = sys.stdout.getvalue()
@@ -252,11 +246,6 @@ class UtilTestCase(unittest.TestCase):
def test_is_Dict(self):
assert is_Dict({})
assert is_Dict(UserDict())
-
- # os.environ is not a dictionary in python 3
- if sys.version_info < (3, 0):
- assert is_Dict(os.environ)
-
try:
class mydict(dict):
pass