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 Name Job ID Coverage
  Test
passed test_sensormapgeo #27513

00:01:15

89.0%
passed test_styles #27514

00:00:15

 
  Deploy
passed deploy_pypi #27515

00:00:23