aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_base.py
diff options
context:
space:
mode:
authorGravatar S. Co1 <[email protected]>2020-03-01 14:27:14 -0500
committerGravatar S. Co1 <[email protected]>2020-03-01 14:27:14 -0500
commit91c6bcd0dfbaad201ee47af2ee7e36e4f372a115 (patch)
tree88d1a802bcadceaf46ae487eaad1400c1edd55e3 /tests/test_base.py
parentMove syncer confirmation reaction check out of finally clause (diff)
Modify log test regex to be non-os-specific
Previous regex utilized a `/`, which doesn't work for comparing against Windows paths, which use `\`
Diffstat (limited to 'tests/test_base.py')
-rw-r--r--tests/test_base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_base.py b/tests/test_base.py
index 235a2ee6c..a7db4bf3e 100644
--- a/tests/test_base.py
+++ b/tests/test_base.py
@@ -29,7 +29,7 @@ class LoggingTestCaseTests(unittest.TestCase):
"""Test if LoggingTestCase.assertNotLogs raises AssertionError when logs were emitted."""
msg_regex = (
r"1 logs of DEBUG or higher were triggered on root:\n"
- r'<LogRecord: tests\.test_base, [\d]+, .+/tests/test_base\.py, [\d]+, "Log!">'
+ r'<LogRecord: tests\.test_base, [\d]+, .+[/\\]tests[/\\]test_base\.py, [\d]+, "Log!">'
)
with self.assertRaisesRegex(AssertionError, msg_regex):
with LoggingTestCase.assertNotLogs(self, level=logging.DEBUG):