From 7591a37365ad8526c9e3f80c4088df990b15edea Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Sep 23 2021 16:31:43 +0000 Subject: tests: Use the correct test case data for Markdown on Python 3 It seems that the "new" behavior generally applies to Markdown on Python 3, so we should test and expect that. Signed-off-by: Neal Gompa --- diff --git a/tests/test_pagure_lib.py b/tests/test_pagure_lib.py index d35c393..0cf3be9 100644 --- a/tests/test_pagure_lib.py +++ b/tests/test_pagure_lib.py @@ -16,6 +16,7 @@ import shutil import sys import os +import six import pygit2 import markdown from mock import patch, MagicMock, Mock @@ -4344,8 +4345,8 @@ class PagureLibtests(tests.Modeltests): '

but not someone@pingou.com

', ] - if mk_321: - print("**** Markdown 3.2.1+ behavior") + if mk_321 or six.PY3: + print("**** Markdown 3.2.1+ and Markdown on Python 3 behavior") expected.append( # '[![Fedora_infinity_small.png]' # '(/test/issue/raw/Fedora_infinity_small.png)]'