Replaced workaround for warning with warnings.catch_warning.

Signed-off-by: Daniel Scheffler <danschef@gfz-potsdam.de>
3 jobs for v0.3.3 in 1 minute and 54 seconds (queued for 9 minutes and 5 seconds)
latest
Status Job ID Name Coverage
  Test
passed #27513
test_sensormapgeo

00:01:15

89.0%
passed #27514
test_styles

00:00:15

 
  Deploy
passed #27515
deploy_pypi

00:00:23