It does not work with non-ASCII names in non-UTF-8 locale. All related test_sys tests are failed on in non-UTF-8 locale. For example: $ LC_ALL=uk_UA ./python -m test -vuall test_sys -m ...