From 96848bcc92e7895aadec7a8c54fe517f702ae0b1 Mon Sep 17 00:00:00 2001 From: Ben Letham Date: Wed, 2 Sep 2020 16:34:18 -0700 Subject: [PATCH] Fix test for python38 --- python/fbprophet/tests/test_diagnostics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fbprophet/tests/test_diagnostics.py b/python/fbprophet/tests/test_diagnostics.py index f515e4f..8284a93 100644 --- a/python/fbprophet/tests/test_diagnostics.py +++ b/python/fbprophet/tests/test_diagnostics.py @@ -78,11 +78,11 @@ class TestDiagnostics(TestCase): m, horizon='10 days', period='10 days', initial='140 days') # invalid alias - with self.assertRaises(ValueError, match="'parallel' should be one"): + with self.assertRaisesRegex(ValueError, "'parallel' should be one"): diagnostics.cross_validation(m, horizon="4 days", parallel="bad") # no map method - with self.assertRaises(ValueError, match="'parallel' should be one"): + with self.assertRaisesRegex(ValueError, "'parallel' should be one"): diagnostics.cross_validation(m, horizon="4 days", parallel=object())