diff -r dad1debba93c Lib/test/test_sysconfig.py --- a/Lib/test/test_sysconfig.py Mon Oct 21 14:46:34 2013 +0200 +++ b/Lib/test/test_sysconfig.py Wed Oct 23 17:39:01 2013 +0530 @@ -352,8 +352,10 @@ self.assertTrue(os.path.exists(Python_h), Python_h) self.assertTrue(sysconfig._is_python_source_dir(srcdir)) elif os.name == 'posix': - self.assertEqual(os.path.dirname(sysconfig.get_makefile_filename()), - srcdir) + # Issue 19340 + makefile_dir = os.path.dirname(sysconfig.get_makefile_filename()) + makefile_dir = os.path.realpath(makefile_dir) + self.assertEqual(makefile_dir, srcdir) def test_srcdir_independent_of_cwd(self): # srcdir should be independent of the current working directory