diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-16 18:32:17 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-16 18:32:17 (GMT) |
commit | e8c5fdba30dd391ba885063b62949f5bd356544b (patch) | |
tree | 2f7e8f767396b6e9685e93919f972d0019c6adda /Lib/packaging | |
parent | 4aec77617f4ed29759125eecb2c04948a525d02d (diff) | |
download | cpython-e8c5fdba30dd391ba885063b62949f5bd356544b.zip cpython-e8c5fdba30dd391ba885063b62949f5bd356544b.tar.gz cpython-e8c5fdba30dd391ba885063b62949f5bd356544b.tar.bz2 |
Add test for packaging.util.set_platform (#13974).
Patch by Tshepang Lekhonkhobe.
Diffstat (limited to 'Lib/packaging')
-rw-r--r-- | Lib/packaging/tests/test_util.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/packaging/tests/test_util.py b/Lib/packaging/tests/test_util.py index 737503e..7f7ed18 100644 --- a/Lib/packaging/tests/test_util.py +++ b/Lib/packaging/tests/test_util.py @@ -173,6 +173,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 = '/' |