At some point a version of pytest seems to have broken the
previous implementation
Change-Id: I7dfd4c8743f5214a3110dd1b6da4fa8296895899
import configparser
import logging
import os
+from pathlib import Path
import re
import sys
from typing import Any
def _list_dbs(*args):
+ if file_config is None:
+ # assume the current working directory is the one containing the
+ # setup file
+ read_config(Path.cwd())
print("Available --db options (use --dburi to override)")
for macro in sorted(file_config.options("db")):
print("%20s\t%s" % (macro, file_config.get("db", macro)))