laforge submitted this change.

View Change


Approvals: fixeria: Looks good to me, but someone else must approve Jenkins Builder: Verified laforge: Looks good to me, approved
test/test_files: set maxDiff attribute

Without this the diff between expected and actual output is truncated
and one instead reads the following output:

Diff is 844 characters long. Set self.maxDiff to None to see it.

We actually want to see the full diff to see what's not matching.

Change-Id: I6e89705061454191b6db1255de7fe549ad720800
---
M tests/test_files.py
1 file changed, 20 insertions(+), 0 deletions(-)

diff --git a/tests/test_files.py b/tests/test_files.py
index 733f04c..24a80a1 100755
--- a/tests/test_files.py
+++ b/tests/test_files.py
@@ -37,6 +37,7 @@

class LinFixed_Test(unittest.TestCase):
classes = all_subclasses(LinFixedEF)
+ maxDiff = None

def test_decode_record(self):
"""Test the decoder for a linear-fixed EF. Requires the given LinFixedEF subclass
@@ -124,6 +125,7 @@

class TransRecEF_Test(unittest.TestCase):
classes = all_subclasses(TransRecEF)
+ maxDiff = None

def test_decode_record(self):
"""Test the decoder for a transparent record-oriented EF. Requires the given TransRecEF subclass
@@ -186,6 +188,8 @@


class TransparentEF_Test(unittest.TestCase):
+ maxDiff = None
+
@classmethod
def get_classes(cls):
"""get list of TransparentEF sub-classes which are not a TransRecEF subclass."""

To view, visit change 35417. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I6e89705061454191b6db1255de7fe549ad720800
Gerrit-Change-Number: 35417
Gerrit-PatchSet: 3
Gerrit-Owner: laforge <laforge@osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de>
Gerrit-Reviewer: laforge <laforge@osmocom.org>
Gerrit-MessageType: merged