mirror of
https://github.com/rasterio/rasterio.git
synced 2025-12-08 17:36:12 +00:00
Sort caplog records for more deterministic results
This commit is contained in:
parent
151cc319ec
commit
2144d443fd
@ -21,8 +21,10 @@ def test_warning(tmpdir, caplog):
|
||||
assert [
|
||||
"CPLE_NotSupported in driver GTiff does not support creation option COMPRESSION",
|
||||
"CPLE_NotSupported in driver GTiff does not support creation option FOO",
|
||||
] == [
|
||||
rec.message
|
||||
for rec in caplog.records
|
||||
if rec.levelno == logging.WARNING and rec.name == "rasterio._env"
|
||||
]
|
||||
] == sorted(
|
||||
[
|
||||
rec.message
|
||||
for rec in caplog.records
|
||||
if rec.levelno == logging.WARNING and rec.name == "rasterio._env"
|
||||
]
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user