Skip to content

Does not get path to database file correctly with "/tmp" as additional dir/arg #45

@blueyed

Description

@blueyed
% py.test project /tmp/envdir_tty
Traceback (most recent call last):
  File "…/pyenv/3.5.1/envs/tmp-3.5.1-2UJvnn/bin/py.test", line 9, in <module>
    load_entry_point('pytest', 'console_scripts', 'py.test')()
  File "…/Vcs/pytest/_pytest/config.py", line 49, in main
    return config.hook.pytest_cmdline_main(config=config)
  File "…/Vcs/pytest/_pytest/vendored_packages/pluggy.py", line 727, in __call__
    return self._hookexec(self, self._nonwrappers + self._wrappers, kwargs)
  File "…/Vcs/pytest/_pytest/vendored_packages/pluggy.py", line 338, in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
  File "…/Vcs/pytest/_pytest/vendored_packages/pluggy.py", line 333, in <lambda>
    _MultiCall(methods, kwargs, hook.spec_opts).execute()
  File "…/Vcs/pytest/_pytest/vendored_packages/pluggy.py", line 599, in execute
    res = hook_impl.function(*args)
  File "…/Vcs/pytest-testmon/testmon/pytest_testmon.py", line 81, in pytest_cmdline_main
    init_testmon_data(config)
  File "…/Vcs/pytest-testmon/testmon/pytest_testmon.py", line 75, in init_testmon_data
    variant=variant)
  File "…/Vcs/pytest-testmon/testmon/testmon_core.py", line 150, in __init__
    self.init_connection()
  File "…/Vcs/pytest-testmon/testmon/testmon_core.py", line 172, in init_connection
    self.connection = sqlite3.connect(self.datafile)
sqlite3.OperationalError: unable to open database file

self.datafile ends up being /.testmondata.

Might be related to pytest-dev/pytest#1594.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions