From e7146cbf50a8da62b5565b33dd0406994fa66329 Mon Sep 17 00:00:00 2001 From: Michael Mulqueen Date: Tue, 21 Jul 2015 18:41:28 +0100 Subject: [PATCH] Remove test relying on dmtxwrite due to issues in last commit. --- pystrich/datamatrix/test_datamatrix.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/pystrich/datamatrix/test_datamatrix.py b/pystrich/datamatrix/test_datamatrix.py index f1a5232..fd7ef7b 100644 --- a/pystrich/datamatrix/test_datamatrix.py +++ b/pystrich/datamatrix/test_datamatrix.py @@ -56,27 +56,6 @@ def test_encode_decode(self): fin = os.popen("sh -c '%s datamatrix-test.png'" % dmtxread_path) self.assertEqual(fin.readline(), string) - def test_against_dmtx(self): - self.maxDiff = None - """Compare the output of this library with that of dmtxwrite""" - - for string in MatrixTest.test_strings: - encoder = DataMatrixEncoder(string) - mine = encoder.get_ascii() - - if not dmtxwrite_path: - print("dmtxwrite is not installed or cannot be found, skipping encoding tests - Debian package " - "libdmtx-utils" % dmtxwrite_path) - else: - p = subprocess.Popen([dmtxwrite_path, "-p"], stdin=subprocess.PIPE, stdout=subprocess.PIPE) - stdout, stderr = p.communicate(string.encode("ascii")) - output = "" - for line in stdout.decode("ascii").splitlines(): - line = line.lstrip() - if line and line[0] == 'X': - output += line + "\n" - self.assertEqual(output, mine) - def test_encoding(self): """Test that text is correctly encoded, and also that padding and error codewords are correctly added"""