diff --git a/tests/ptrack.py b/tests/ptrack.py index 169b7b5f..c7453fe9 100644 --- a/tests/ptrack.py +++ b/tests/ptrack.py @@ -443,8 +443,8 @@ class PtrackBackupTest(ProbackupTest, unittest.TestCase): self.assertEqual(1, 0, "Expecting Error because we are connecting to deleted database.\n Output: {0} \n CMD: {1}".format( repr(self.output), self.cmd)) except QueryException as e: - self.assertTrue('FATAL: database "db1" does not exist' in e.message, - '\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e.message), self.cmd)) + self.assertTrue('FATAL: database "db1" does not exist' in e, + '\n Unexpected Error Message: {0}\n CMD: {1}'.format(repr(e), self.cmd)) # Clean after yourself self.del_test_dir(module_name, fname)