diff --git a/CHANGELOG.md b/CHANGELOG.md index 251f933255c..bcaaa71a866 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,8 +3,12 @@ ### Features - Allow nullable `error_after` in source freshness ([#3874](https://github.com/dbt-labs/dbt-core/issues/3874), [#3955](https://github.com/dbt-labs/dbt-core/pull/3955)) +### Fixes +- Changes unit tests using `assertRaisesRegexp` to `assertRaisesRegex` + Contributors: - [@kadero](https://github.com/kadero) ([3955](https://github.com/dbt-labs/dbt-core/pull/3955)) +- [@frankcash](https://github.com/frankcash) ([4136](https://github.com/dbt-labs/dbt-core/pull/4136) ## dbt-core 1.0.0b2 (October 25, 2021) diff --git a/test/integration/027_cycle_test/test_cycles.py b/test/integration/027_cycle_test/test_cycles.py index ae5101d4844..8c8738ab2ef 100644 --- a/test/integration/027_cycle_test/test_cycles.py +++ b/test/integration/027_cycle_test/test_cycles.py @@ -16,7 +16,7 @@ def models(self): @use_profile('postgres') def test_postgres_simple_cycle(self): message = "Found a cycle.*" - with self.assertRaisesRegexp(Exception, message): + with self.assertRaisesRegex(Exception, message): self.run_dbt(["run"]) class TestComplexCycle(DBTIntegrationTest): @@ -33,5 +33,5 @@ def models(self): @use_profile('postgres') def test_postgres_simple_cycle(self): message = "Found a cycle.*" - with self.assertRaisesRegexp(Exception, message): + with self.assertRaisesRegex(Exception, message): self.run_dbt(["run"])