mirror of
https://git.launchpad.net/ubuntu-dev-tools
synced 2025-03-13 08:01:09 +00:00
Fix test_config to skip Unicode environment variable test, when python
interpreter is not running in an unicode capable locale.
This commit is contained in:
parent
9d09768bd1
commit
99eb51b4e1
4
debian/changelog
vendored
4
debian/changelog
vendored
@ -2,8 +2,10 @@ ubuntu-dev-tools (0.155) UNRELEASED; urgency=medium
|
||||
|
||||
* Fix python3 setup.py clean failing to read unicode from
|
||||
debian/changelog.
|
||||
* Fix test_config to skip Unicode environment variable test, when python
|
||||
interpreter is not running in an unicode capable locale.
|
||||
|
||||
-- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Sat, 17 Jan 2015 15:40:33 +0000
|
||||
-- Dimitri John Ledkov <dimitri.j.ledkov@linux.intel.com> Mon, 19 Jan 2015 14:15:32 +0000
|
||||
|
||||
ubuntu-dev-tools (0.154) experimental; urgency=medium
|
||||
|
||||
|
@ -239,6 +239,9 @@ class UbuEmailTestCase(unittest.TestCase):
|
||||
if isinstance(name, bytes):
|
||||
name = 'Jöe Déveloper'.decode('utf-8')
|
||||
env_name = name.encode(encoding)
|
||||
try:
|
||||
os.environ['DEBFULLNAME'] = env_name
|
||||
except UnicodeEncodeError:
|
||||
raise unittest.SkipTest("python interpreter is not running in an unicode capable locale")
|
||||
os.environ['DEBEMAIL'] = email = 'joe@example.net'
|
||||
self.assertEqual(ubu_email(), (name, email))
|
||||
|
Loading…
x
Reference in New Issue
Block a user