python-flit/merged_pr_278.patch

26 lines
943 B
Diff

From 6a6b7ff1d4cfb061c42c16b1740c4dac22cda91c Mon Sep 17 00:00:00 2001
From: Matthias Bussonnier <bussonniermatthias@gmail.com>
Date: Thu, 25 Jul 2019 20:31:38 -0700
Subject: [PATCH] Fix CI error on test_misspelled_key
Error seem to be due to pytest wrapping errors, and the str()
representation of the error not always having the full error message of
the underlying error.
---
tests/test_inifile.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/test_inifile.py b/tests/test_inifile.py
index 1f7adbd..3dc3abc 100644
--- a/tests/test_inifile.py
+++ b/tests/test_inifile.py
@@ -40,7 +40,7 @@ def test_misspelled_key():
with pytest.raises(ConfigError) as e_info:
read_pkg_ini(samples_dir / 'misspelled-key.ini')
- assert 'description-file' in str(e_info)
+ assert 'scription-file' in str(e_info.value)
def test_description_file():
info = read_pkg_ini(samples_dir / 'package1-pkg.ini')