Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2c621ae7 authored by Josh Gao's avatar Josh Gao
Browse files

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
parent dcc055af
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)