mirror of
https://github.com/saymrwulf/prophet.git
synced 2026-11-19 09:00:59 +00:00
Fix test for python38
This commit is contained in:
parent
2061f251f8
commit
96848bcc92
1 changed files with 2 additions and 2 deletions
|
|
@ -78,11 +78,11 @@ class TestDiagnostics(TestCase):
|
||||||
m, horizon='10 days', period='10 days', initial='140 days')
|
m, horizon='10 days', period='10 days', initial='140 days')
|
||||||
|
|
||||||
# invalid alias
|
# 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")
|
diagnostics.cross_validation(m, horizon="4 days", parallel="bad")
|
||||||
|
|
||||||
# no map method
|
# 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())
|
diagnostics.cross_validation(m, horizon="4 days", parallel=object())
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue