Skip to content

Conversation

@tonyfast
Copy link
Member

No description provided.

@bollwyvl
Copy link
Contributor

A nickle fix for the current test issue:

diff --git a/docs/test_cli.py b/docs/test_cli.py
index 6111e0e..71c45a3 100644
--- a/docs/test_cli.py
+++ b/docs/test_cli.py
@@ -1,3 +1,4 @@
+import re
 from pathlib import Path
 from subprocess import check_call
 from sys import executable, path, version_info
@@ -44,7 +45,10 @@ def cli_test(command):
 
             if "UserWarning: Attempting to work in a virtualenv." in out:
                 out = "".join(out.splitlines(True)[2:])
-            assert out == match
+
+            out_stripped = re.sub(r"\s+", " ", out)
+            match_stripped = re.sub(r"\s+", " ", out)
+            assert out_stripped == match_stripped
 
         return wrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants