The zoneinfo deprecation warning is attributed to the importing code.
(record)
| 56 | |
| 57 | |
| 58 | def assert_warned_from_this_file(record): |
| 59 | """The zoneinfo deprecation warning is attributed to the importing code.""" |
| 60 | filenames = [ |
| 61 | os.path.normcase(os.path.splitext(w.filename)[0]) |
| 62 | for w in record |
| 63 | if issubclass(w.category, DeprecationWarning) |
| 64 | ] |
| 65 | assert filenames == [os.path.normcase(os.path.splitext(__file__)[0])] |
| 66 | |
| 67 | |
| 68 | def test_lazy_import_zoneinfo(clean_import): |
no outgoing calls
no test coverage detected