NetworkInfoTest.test_get_active_device_info is locale dependent

Bug #1674916 reported by Данило Шеган
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Landscape Client
Fix Committed
Данило Шеган

Bug Description

Running the above test in eg. a Serbian locale fails with:

Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/mock/", line 1305, in patched
    return func(*args, **keywargs)
  File "/home/ubuntu/canonical/landscape-client/ifconfig-locale-dependency-fix/landscape/lib/tests/", line 27, in test_get_active_device_info
    result = result.decode("ascii")
exceptions.UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 21: ordinal not in range(128)

This is due to ifconfig having non-ASCII in the output ( Before the py3 porting work, this test used to fail for me locally with "UP" not found assertion, so it was locale-dependent before too.

Related branches

Changed in landscape-client:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.