Commits

Éric Araujo committed 269fde2 Draft Merge

Branch merge

  • Participants
  • Parent commits 35c5143, 697e934

Comments (0)

Files changed (2)

File Lib/packaging/tests/support.py

         srcdir = sysconfig.get_config_var('projectbase')
         path = os.path.join(os.getcwd(), srcdir, 'Modules', 'xxmodule.c')
     else:
-        os.path.join(os.path.dirname(__file__), 'xxmodule.c')
+        path = os.path.join(os.path.dirname(__file__), 'xxmodule.c')
     if os.path.exists(path):
         return path
 

File Lib/packaging/tests/test_util.py

         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 = '/'