diff --git a/tests/test_pagure_flask_ui_no_master_branch.py b/tests/test_pagure_flask_ui_no_master_branch.py index 654e910..7b1de81 100644 --- a/tests/test_pagure_flask_ui_no_master_branch.py +++ b/tests/test_pagure_flask_ui_no_master_branch.py @@ -230,8 +230,13 @@ class PagureFlaskNoMasterBranchtests(tests.Modeltests): '
foo
foo
foo
'
+ ''
+ ''
+ '@@ -0,0 +1,3 @@' in output.data
+ or
+ # old version of pygments
''
''
''
diff --git a/tests/test_pagure_flask_ui_slash_branch_name.py b/tests/test_pagure_flask_ui_slash_branch_name.py
index ec477ef..61cb737 100644
--- a/tests/test_pagure_flask_ui_slash_branch_name.py
+++ b/tests/test_pagure_flask_ui_slash_branch_name.py
@@ -233,7 +233,12 @@ class PagureFlaskSlashInBranchtests(tests.Modeltests):
''
' .gitignore ',
output.data)
- self.assertIn('*~
', output.data)
+ self.assertTrue(
+ # new version of pygments
+ '*~
' in output.data
+ or
+ # old version of pygments
+ '*~
' in output.data)
@patch('pagure.lib.notify.send_email')
def test_view_raw_file(self, send_email):