diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-04-28 09:54:45 +0100 |
commit | b7ebc951da8800f711142f69d9d958bde67a112d (patch) | |
tree | e318514216845acb8f2e49fff7a5cba4027e9d91 /www-misc/urlwatch/files | |
parent | dc7cbdfa65fd814b3b9aa3c56257da201109e807 (diff) |
gentoo resync : 28.04.2019
Diffstat (limited to 'www-misc/urlwatch/files')
-rw-r--r-- | www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch b/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch new file mode 100644 index 000000000000..c8bd04ae932f --- /dev/null +++ b/www-misc/urlwatch/files/urlwatch-2.17-fix-yaml.load.patch @@ -0,0 +1,18 @@ +commit d00041bacd6343cadf29c3d0a98817a7b9fda2a1 +Author: Louis Sautier <sautier.louis@gmail.com> +Date: Sun Apr 14 14:49:24 2019 +0200 + + Fix YAMLLoadWarning in tests + +diff --git a/test/test_filters.py b/test/test_filters.py +index 3402616..da2393b 100644 +--- a/test/test_filters.py ++++ b/test/test_filters.py +@@ -33,6 +33,6 @@ def test_filters(): + eq_(result, expected_result) + + with open(os.path.join(os.path.dirname(__file__), 'data/filter_tests.yaml'), 'r', encoding='utf8') as fp: +- filter_tests = yaml.load(fp) ++ filter_tests = yaml.load(fp, Loader=yaml.SafeLoader) + for test_name in filter_tests: + yield check_filter, test_name |