浏览代码

[filebrowser] Switch to else instead of return in xxd test

Romain Rigaux 10 年之前
父节点
当前提交
4787ec8a9c
共有 1 个文件被更改,包括 6 次插入6 次删除
  1. 6 6
      apps/filebrowser/src/filebrowser/lib/xxd_test.py

+ 6 - 6
apps/filebrowser/src/filebrowser/lib/xxd_test.py

@@ -56,12 +56,12 @@ class XxdTest(unittest.TestCase):
   def _verify_content(self, expected, actual):
     if self._is_offset_width_same(expected, actual):
       self.assertEquals(expected, actual)
-      return
-    # Not all distributions have the same amount of bits in their 'Offset'
-    # This corrects for this to avoid having this test fail when that is the only problem
-    corrected_expected = self._standardize_xxd_output(expected)
-    corrected_actual = self._standardize_xxd_output(actual)
-    self.assertEquals(corrected_expected, corrected_actual)
+    else:
+      # Not all distributions have the same amount of bits in their 'Offset'
+      # This corrects for this to avoid having this test fail when that is the only problem
+      corrected_expected = self._standardize_xxd_output(expected)
+      corrected_actual = self._standardize_xxd_output(actual)
+      self.assertEquals(corrected_expected, corrected_actual)
 
   def test_compare_to_xxd(self):
     """