summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author?ric Araujo <merwok@netwok.org>2012-02-16 19:35:40 +0100
committer?ric Araujo <merwok@netwok.org>2012-02-16 19:35:40 +0100
commit124fbe0ccc6a243717388a6ec0720d0e625d166b (patch)
treec5822907754a10b4d1b67fbce626b21d8e33f263
parent7d34d5fb6a09c8c476d0989acfb920a81d7653a5 (diff)
downloaddisutils2-124fbe0ccc6a243717388a6ec0720d0e625d166b.tar.gz
Add test for util.set_platform (#13974).
Patch by Tshepang Lekhonkhobe.
-rw-r--r--CHANGES.txt1
-rw-r--r--distutils2/tests/test_util.py5
2 files changed, 6 insertions, 0 deletions
diff --git a/CHANGES.txt b/CHANGES.txt
index 140fb9c..4895cf9 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -166,6 +166,7 @@ CONTRIBUTORS.txt for full names. Bug numbers refer to http://bugs.python.org/.
script with pysetup create [éric]
- #1326113: build_ext now correctly parses multiple values given to the
--libraries option [éric]
+- #13974: add test for util.set_platform [tshepang]
1.0a3 - 2010-10-08
diff --git a/distutils2/tests/test_util.py b/distutils2/tests/test_util.py
index c08517e..8d3e35e 100644
--- a/distutils2/tests/test_util.py
+++ b/distutils2/tests/test_util.py
@@ -172,6 +172,11 @@ class UtilTestCase(support.EnvironRestorer,
sys.stdout = self.old_stdout
sys.stderr = self.old_stderr
+ def test_set_platform(self):
+ self.addCleanup(util.set_platform, util.get_platform())
+ util.set_platform("fake")
+ self.assertEqual("fake", util.get_platform())
+
def test_convert_path(self):
# linux/mac
os.sep = '/'