diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-06 23:23:07 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2020-10-06 23:31:36 -0400 |
commit | 166833e16ec342dfa10edb287d7aa495ddd1b59d (patch) | |
tree | 7ea458116462ae4dc18b4cdcda4daabdb1315722 /lib/sqlalchemy/testing/plugin/plugin_base.py | |
parent | 402cca8f2ac42a08fba7a200c4e1e086e2081aad (diff) | |
download | sqlalchemy-timing_intensive.tar.gz |
add --notimingintensive; block from github jobstiming_intensive
this provides a front-end option to disable tests marked
as timing_intensive, all of which are in test_pool, which are more
fragile and aren't consistent on the
github runners. also remove /reduce unnecessary time.sleep()
from two other pool tests that are not timing intensive.
note that this removes test_hanging_connect_within_overflow
from the github runs via the timing_intensive requirement.
I've also removed MockReconnectTest from exclusions as those are
really important tests and they use mocks so should not have
platform dependent issues. Need to see what the
windows failures are.
Change-Id: Icb3d284a2a952e2495d80fa91e22e0b32a54340f
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/plugin_base.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/plugin/plugin_base.py b/lib/sqlalchemy/testing/plugin/plugin_base.py index b5f2a3e0b..34e3c5760 100644 --- a/lib/sqlalchemy/testing/plugin/plugin_base.py +++ b/lib/sqlalchemy/testing/plugin/plugin_base.py @@ -122,6 +122,12 @@ def setup_options(make_option): help="Don't run memory profiling tests", ) make_option( + "--notimingintensive", + action="store_true", + dest="notimingintensive", + help="Don't run timing intensive tests", + ) + make_option( "--profile-sort", type="string", default="cumulative", @@ -347,6 +353,12 @@ def _set_nomemory(opt, file_config): @pre +def _set_notimingintensive(opt, file_config): + if opt.notimingintensive: + exclude_tags.add("timing_intensive") + + +@pre def _monkeypatch_cdecimal(options, file_config): if options.cdecimal: import cdecimal |