To avoid regressions, add test to cover the bug fix in https://github.com/getsentry/sentry-python/pull/1106.
To avoid regressions, add test to cover the bug fix in #1106.