A community-maintained Python framework for creating mathematical animations.
Disable timestamps for logging tests.
Aathishb7e455e65385
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.ymlindex 9889a4fff..a13c368a8 100644--- a/.github/workflows/ci.yml+++ b/.github/workflows/ci.yml@@ -6,6 +6,7 @@ on:pull_request:branches:- master+ - extend_subcmdsjobs:format:diff --git a/tests/test_logging/expected.txt b/tests/test_logging/expected.txtindex ac9ee9203..30abb9852 100644--- a/tests/test_logging/expected.txt+++ b/tests/test_logging/expected.txt@@ -1,4 +1,4 @@- INFO Read configuration files: config.py:- INFO scene_file_writer.py:- File ready at+INFO Read configuration files: config.py:+INFO scene_file_writer.py:+ File ready atdiff --git a/tests/test_logging/test_logging.py b/tests/test_logging/test_logging.pyindex 892889a6e..b169a047e 100644--- a/tests/test_logging/test_logging.py+++ b/tests/test_logging/test_logging.py@@ -45,8 +45,8 @@ def test_logging_to_file(python_version):enc = "utf-8"with open(log_file_path, encoding=enc) as logfile:logs = logfile.read()- # The following regex pattern selects timestamps, file paths and all numbers..- pattern = r"(\[?\d+:?]?)|(\['[A-Z]?:?[\/\\].*cfg'])|([A-Z]?:?[\/\\].*mp4)"+ # The following regex pattern selects file paths and all numbers.+ pattern = r"(\['[A-Z]?:?[\/\\].*cfg'])|([A-Z]?:?[\/\\].*mp4)|(\d+)"logs = re.sub(pattern, lambda m: " " * len((m.group(0))), logs)with open(diff --git a/tests/tests_data/manim.cfg b/tests/tests_data/manim.cfgindex 6a3178abf..78d187469 100644--- a/tests/tests_data/manim.cfg+++ b/tests/tests_data/manim.cfg@@ -6,4 +6,5 @@ save_last_frame = False# save_pngs = False[logger]-log_width = 256\ No newline at end of file+log_width = 256+log_timestamps = False\ No newline at end of file