CC: @inducer @maedoc,
I don't think there's a good way to add a test for this (we'd need to have a version of python compiled with a non-system compiler?).