From 0de60abc5eb71eff14faa0169331327141a5e855 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Sun, 25 Sep 2016 17:17:27 +0200 Subject: fix(test): deal with py2 and py3 It ain't pretty, but should do the job. Related to #514 --- git/test/test_index.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'git/test/test_index.py') diff --git a/git/test/test_index.py b/git/test/test_index.py index bce56089..178a59d2 100644 --- a/git/test/test_index.py +++ b/git/test/test_index.py @@ -145,7 +145,9 @@ class TestIndex(TestBase): ## 1st fail on purpose adding into index. add_bad_blob() except Exception as ex: - assert "cannot convert argument to integer" in str(ex) + msg_py3 = "required argument is not an integer" + msg_py2 = "cannot convert argument to integer" + assert msg_py2 in str(ex) or msg_py3 in str(ex) ## 2nd time should not fail due to stray lock file try: -- cgit v1.2.1