From 166833e16ec342dfa10edb287d7aa495ddd1b59d Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 6 Oct 2020 23:23:07 -0400 Subject: add --notimingintensive; block from github jobs 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 --- lib/sqlalchemy/testing/plugin/plugin_base.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/sqlalchemy') 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 @@ -121,6 +121,12 @@ def setup_options(make_option): dest="nomemory", 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", @@ -346,6 +352,12 @@ def _set_nomemory(opt, file_config): exclude_tags.add("memory_intensive") +@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: -- cgit v1.2.1