Kaydet (Commit) e8c5fdba authored tarafından Éric Araujo's avatar Éric Araujo

Add test for packaging.util.set_platform (#13974).

Patch by Tshepang Lekhonkhobe.
üst 4aec7761
......@@ -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 = '/'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment