[Python-checkins] distutils2: Add test for util.set_platform (#13974).
eric.araujo
python-checkins at python.org
Mon Feb 27 12:29:44 CET 2012
http://hg.python.org/distutils2/rev/fae9d7aa7fc9
changeset: 1288:fae9d7aa7fc9
user: Éric Araujo <merwok at netwok.org>
date: Thu Feb 16 19:35:40 2012 +0100
summary:
Add test for util.set_platform (#13974).
Patch by Tshepang Lekhonkhobe.
files:
CHANGES.txt | 1 +
distutils2/tests/test_util.py | 5 +++++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/CHANGES.txt b/CHANGES.txt
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -166,6 +166,7 @@
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
--- a/distutils2/tests/test_util.py
+++ b/distutils2/tests/test_util.py
@@ -172,6 +172,11 @@
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 = '/'
--
Repository URL: http://hg.python.org/distutils2
More information about the Python-checkins
mailing list