fix suppressed deprecation warning

Python's default warning filter suppresses deprecation warnings;
Use a different warning that will be visible.