$OpenBSD: patch-tests_system_cli_test_sync_py,v 1.1 2020/08/12 19:48:29 remi Exp $

Compatibility with latest click
https://github.com/pimutils/vdirsyncer/commit/3eb9ce5ae4320d52e6c876874511ff96a8a45f51

Index: tests/system/cli/test_sync.py
--- tests/system/cli/test_sync.py.orig
+++ tests/system/cli/test_sync.py
@@ -123,7 +123,10 @@ def test_verbosity(tmpdir, runner):
     runner.write_with_general('')
     result = runner.invoke(['--verbosity=HAHA', 'sync'])
     assert result.exception
-    assert 'invalid value for "--verbosity"' in result.output.lower()
+    assert {
+        'invalid value for "--verbosity"' in result.output.lower()
+        or "invalid value for '--verbosity'" in result.output.lower()
+    }
 
 
 def test_collections_cache_invalidation(tmpdir, runner):
