Fix flake8 errors/warnings about import in cubicweb/_exceptions.py
We either ignore errors in case of name re-exports and drop re-exports
from old backwards compatibility. We fix the only occurrence of
NoSelectableObject being imported from cubicweb in tests and update the
import to use lgc instead.
### Requirements for tests in various cubicweb/**/test directories. ###
## shared by several test folders
docutils
webtest
## cubicweb/test
Pygments
#fyzz XXX pip install fails
## cubicweb/devtools/test
flake8
## cubicweb/hooks/test
psycopg2-binary
## cubicweb/pyramid/test
pyramid >= 1.5.0
waitress >= 0.8.9
wsgicors >= 0.3
pyramid_multiauth
repoze.lru
## cubicweb/sobject/test