f4a4764
From 36c65aee6f2d46c5fda7cdf5993d472fe12d6943 Mon Sep 17 00:00:00 2001
f4a4764
From: Scott K Logan <logans@cottsay.net>
f4a4764
Date: Mon, 18 Mar 2019 14:53:06 -0700
f4a4764
Subject: [PATCH] Handle negative-offset timezones in tests
f4a4764
f4a4764
---
f4a4764
 coloredlogs/tests.py | 2 +-
f4a4764
 1 file changed, 1 insertion(+), 1 deletion(-)
f4a4764
f4a4764
diff --git a/coloredlogs/tests.py b/coloredlogs/tests.py
f4a4764
index 38f2d97..4140b90 100644
f4a4764
--- a/coloredlogs/tests.py
f4a4764
+++ b/coloredlogs/tests.py
f4a4764
@@ -367,7 +367,7 @@ def test_support_for_milliseconds_directive(self):
f4a4764
         stream = StringIO()
f4a4764
         install(reconfigure=True, stream=stream, datefmt='%Y-%m-%dT%H:%M:%S.%f%z')
f4a4764
         logging.info("This should be timestamped according to #45.")
f4a4764
-        assert re.match(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}\+\d{4}\s', stream.getvalue())
f4a4764
+        assert re.match(r'^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}[+-]\d{4}\s', stream.getvalue())
f4a4764
 
f4a4764
     def test_plain_text_output_format(self):
f4a4764
         """Inspect the plain text output of coloredlogs."""