Commit f1fd388c authored by Éric Araujo's avatar Éric Araujo

Branch merge

parents 082f177c 2180ee64
......@@ -342,7 +342,7 @@ def _get_xxmodule_path():
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
......
......@@ -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