diff options
| author | Martin v. Löwis <martin@v.loewis.de> | 2012-08-01 08:32:11 (GMT) |
|---|---|---|
| committer | Martin v. Löwis <martin@v.loewis.de> | 2012-08-01 08:32:11 (GMT) |
| commit | 4c1730db7c8735d2424471e63a2fa7d690192899 (patch) | |
| tree | 81354d949ddcf62efee2d38b5104a84fcb603c67 /Lib/test/test_list.py | |
| parent | 06c5c6d694481a3c1e09420756f8ad6ca1762d0f (diff) | |
| download | cpython-4c1730db7c8735d2424471e63a2fa7d690192899.zip cpython-4c1730db7c8735d2424471e63a2fa7d690192899.tar.gz cpython-4c1730db7c8735d2424471e63a2fa7d690192899.tar.bz2 | |
Issue #8847: Disable COMDAT folding in Windows PGO builds.
Analysis by Victor Stinner. Patch by Stefan Krah.
Diffstat (limited to 'Lib/test/test_list.py')
| -rw-r--r-- | Lib/test/test_list.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Lib/test/test_list.py b/Lib/test/test_list.py index d7e6629..84b8afe 100644 --- a/Lib/test/test_list.py +++ b/Lib/test/test_list.py @@ -70,6 +70,14 @@ class ListTest(list_tests.CommonTest): check(1000000) + def test_no_comdat_folding(self): + # Issue 8847: In the PGO build, the MSVC linker's COMDAT folding + # optimization causes failures in code that relies on distinct + # function addresses. + class L(list): pass + with self.assertRaises(TypeError): + (3,) + L([1,2]) + def test_main(verbose=None): support.run_unittest(ListTest) |
