[Sqlalchemy-tickets] Issue #4249: Error when testing dialect with an exclusion (zzzeek/sqlalchemy)
Brought to you by:
zzzeek
From: Patrick B. <iss...@bi...> - 2018-05-10 05:28:49
|
New issue 4249: Error when testing dialect with an exclusion https://bitbucket.org/zzzeek/sqlalchemy/issues/4249/error-when-testing-dialect-with-an Patrick Buxton: The error shown below is seen when testing a dialect with: @property def json_type(self): return exclusions.closed() =================================== ERRORS ==================================== ___________ ERROR at setup of JSONTest.test_crit_against_int_basic ____________ Traceback (most recent call last): File "C:\Users\pat\Anaconda2\lib\site-packages\sqlalchemy\testing\plugin\pytestplugin.py", line 173, in pytest_runtest_setup class_setup(item.parent.parent) File "C:\Users\pat\Anaconda2\lib\site-packages\sqlalchemy\testing\plugin\pytestplugin.py", line 206, in class_setup plugin_base.start_test_class(item.cls) File "C:\Users\pat\Anaconda2\lib\site-packages\sqlalchemy\testing\plugin\plugin_base.py", line 452, in start_test_class _do_skips(cls) File "C:\Users\pat\Anaconda2\lib\site-packages\sqlalchemy\testing\plugin\plugin_base.py", line 567, in _do_skips for config_obj in config.Config.all_configs() File "C:\Users\pat\Anaconda2\lib\site-packages\sqlalchemy\testing\plugin\plugin_base.py", line 567, in <genexpr> for config_obj in config.Config.all_configs() TypeError: 'NoneType' object is not iterable I'm working on two dialects with this skip in place and it doesn't affect one of them, but I have seen that other people have also had this issue. (https://github.com/gijzelaerr/sqlalchemy-monetdb/issues/30) The easiest way to reproduce will be to run the dialect tests: git clone gi...@gi...:PlaidCloud/sqlalchemy-hana.git cd sqlalchemy-hana python setup.py test Just comment out line 62 in testing\provision.py if you don't have a HANA server to point at and you'll still get the error generated even if the tests fail. |