diff -r be8b133d5d3e Lib/test/test_site.py --- a/Lib/test/test_site.py Wed Nov 02 15:55:26 2016 -0400 +++ b/Lib/test/test_site.py Wed Nov 02 22:08:28 2016 +0100 @@ -443,6 +443,10 @@ def test_startup_imports(self): # This tests checks which modules are loaded by Python when it # initially starts upon startup. + if (os.name == 'posix' and not + sysconfig.get_config_var('HAVE_LANGINFO_H')): + self.skipTest('does not have langinfo.h') + popen = subprocess.Popen([sys.executable, '-I', '-v', '-c', 'import sys; print(set(sys.modules))'], stdout=subprocess.PIPE,