From c40bc7993cbaa88e92d2594ab2481c6f1dfa56ca Mon Sep 17 00:00:00 2001 From: Gabriel Studer <gabriel.studer@unibas.ch> Date: Sat, 23 Nov 2019 18:03:14 +0100 Subject: [PATCH] IOException does not have message attribute in Python 3 --- modules/bindings/tests/test_hhblits.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/bindings/tests/test_hhblits.py b/modules/bindings/tests/test_hhblits.py index 22a4faf20..eaff9a3f7 100644 --- a/modules/bindings/tests/test_hhblits.py +++ b/modules/bindings/tests/test_hhblits.py @@ -182,7 +182,7 @@ class TestHHblitsBindings(unittest.TestCase): with self.assertRaises(IOError) as ioe: self.hh.A3MToProfile("doesnotexist.a3m") self.assertEqual(ioe.exception.errno, None) - self.assertEqual(ioe.exception.message, + self.assertEqual(ioe.exception.args[0], "could not convert a3m to hhm file") def testA3mToCSFileName(self): @@ -287,7 +287,7 @@ class TestHHblitsBindings(unittest.TestCase): # get info from an HHM file with self.assertRaises(IOError) as ioe: hhblits.ParseHHM(open('testfiles/testali.a3m')) - self.assertEqual(ioe.exception.message, + self.assertEqual(ioe.exception.args[0], 'Profile file "testfiles/testali.a3m" is missing '+ 'the "Consensus" section') -- GitLab