adb: fix unicode file path test.

This test is failing due to:

     UnicodeWarning: Unicode equal comparison failed to convert both
     arguments to Unicode - interpreting them as being unequal'

Both arguments are already unicode, so stop encoding one side.

Test: python -m unittest test_device.FileOperationsTest.test_unicode_paths
Change-Id: Iea8bf29845ab3008ccf4c7dbd6969196e57ea25d
This commit is contained in:
Josh Gao 2018-03-19 16:09:05 -07:00
parent dcc055af64
commit 2c621ae741
1 changed files with 1 additions and 1 deletions

View File

@ -1187,7 +1187,7 @@ class FileOperationsTest(DeviceTest):
# Verify that the device ended up with the expected UTF-8 path
output = self.device.shell(
['ls', '/data/local/tmp/adb-test-*'])[0].strip()
self.assertEqual(remote_path.encode('utf-8'), output)
self.assertEqual(remote_path, output)
# pull.
self.device.pull(remote_path, tf.name)