mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Issue #3080: skip test_bdist_rpm if sys.executable is not encodable to UTF-8
This commit is contained in:
parent
fe93faf98c
commit
22a8cbe8af
1 changed files with 5 additions and 0 deletions
|
|
@ -28,6 +28,11 @@ class BuildRpmTestCase(support.TempdirManager,
|
||||||
unittest.TestCase):
|
unittest.TestCase):
|
||||||
|
|
||||||
def setUp(self):
|
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()
|
super(BuildRpmTestCase, self).setUp()
|
||||||
self.old_location = os.getcwd()
|
self.old_location = os.getcwd()
|
||||||
self.old_sys_argv = sys.argv, sys.argv[:]
|
self.old_sys_argv = sys.argv, sys.argv[:]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue