[Python-checkins] cpython: Issue #3080: skip test_bdist_rpm if sys.executable is not encodable to UTF-8
victor.stinner
python-checkins at python.org
Sun Mar 20 04:14:10 CET 2011
http://hg.python.org/cpython/rev/cc7c0f6f60bf
changeset: 68740:cc7c0f6f60bf
user: Victor Stinner <victor.stinner at haypocalc.com>
date: Mon Mar 14 20:03:36 2011 -0400
summary:
Issue #3080: skip test_bdist_rpm if sys.executable is not encodable to UTF-8
files:
Lib/distutils/tests/test_bdist_rpm.py
diff --git a/Lib/distutils/tests/test_bdist_rpm.py b/Lib/distutils/tests/test_bdist_rpm.py
--- a/Lib/distutils/tests/test_bdist_rpm.py
+++ b/Lib/distutils/tests/test_bdist_rpm.py
@@ -28,6 +28,11 @@
unittest.TestCase):
def setUp(self):
+ try:
+ sys.executable.encode("UTF-8")
+ except UnicodeEncodeError:
+ raise unittest.SkipTest("sys.executable is not encodable to UTF-8")
+
super(BuildRpmTestCase, self).setUp()
self.old_location = os.getcwd()
self.old_sys_argv = sys.argv, sys.argv[:]
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list