test_preconf: Support deselecting tests with extra deps
test_preconf: Support deselecting tests with extra deps

Import additional test dependencies inside test functions rather than
in global scope.  This makes it possible to use --deselect on individual
tests if the dependencies in question aren't installed.

python-attrs/cattrs,Tinche/cattrs