Skip to content

Commit

Permalink
test: assertNoLogs needs Python >= 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mbdevpl committed Mar 4, 2024
1 parent 23d43fe commit a5d454c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/test_sentry.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Unit tests for Sentry boilerplate."""

import logging
import sys
import unittest
import unittest.mock

Expand All @@ -25,6 +26,7 @@ class Sentry(boilerplates.sentry.Sentry):
self.assertEqual(len(context.output), 1, msg=context.output)
self.assertIn('skipping Sentry SDK initialisation', context.output[0])

@unittest.skipUnless(sys.version_info >= (3, 10), 'this test requires Python 3.10')
def test_init_with_dsn(self):
class Sentry(boilerplates.sentry.Sentry):
dsn = 'https://spam@ham.ingest.sentry.io/eggs'
Expand Down

0 comments on commit a5d454c

Please sign in to comment.