summaryrefslogtreecommitdiffstats
path: root/tests/features/environment.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2023-11-01 04:38:03 +0000
commitfa11d0da51045077b543d42a1ab661c4a20b5127 (patch)
treeaac9e87c59cb8bc7e3cd429e9200c3ca017cb591 /tests/features/environment.py
parentAdding upstream version 3.5.0. (diff)
downloadpgcli-fa11d0da51045077b543d42a1ab661c4a20b5127.tar.xz
pgcli-fa11d0da51045077b543d42a1ab661c4a20b5127.zip
Adding upstream version 4.0.1.upstream/4.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'tests/features/environment.py')
-rw-r--r--tests/features/environment.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/features/environment.py b/tests/features/environment.py
index 6cc8e14..50ac5fa 100644
--- a/tests/features/environment.py
+++ b/tests/features/environment.py
@@ -164,10 +164,24 @@ def before_step(context, _):
context.atprompt = False
+def is_known_problem(scenario):
+ """TODO: why is this not working in 3.12?"""
+ if sys.version_info >= (3, 12):
+ return scenario.name in (
+ 'interrupt current query via "ctrl + c"',
+ "run the cli with --username",
+ "run the cli with --user",
+ "run the cli with --port",
+ )
+ return False
+
+
def before_scenario(context, scenario):
if scenario.name == "list databases":
# not using the cli for that
return
+ if is_known_problem(scenario):
+ scenario.skip()
currentdb = None
if "pgbouncer" in scenario.feature.tags:
if context.pgbouncer_available: