forked from pool/python-syrupy
needed by translate-toolkit tests OBS-URL: https://build.opensuse.org/request/show/1098482 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-syrupy?expand=0&rev=1
19 lines
466 B
Diff
19 lines
466 B
Diff
Index: syrupy-4.0.4/src/syrupy/terminal.py
|
|
===================================================================
|
|
--- syrupy-4.0.4.orig/src/syrupy/terminal.py
|
|
+++ syrupy-4.0.4/src/syrupy/terminal.py
|
|
@@ -2,8 +2,12 @@ from typing import (
|
|
Any,
|
|
Union,
|
|
)
|
|
+import os
|
|
|
|
-import colored
|
|
+try:
|
|
+ import colored
|
|
+except ImportError:
|
|
+ os.environ["DISABLE_COLOR_ENV_VARS"] = "1"
|
|
|
|
from .constants import DISABLE_COLOR_ENV_VARS
|
|
from .utils import get_env_value
|