Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running tests without internet connection #14

Open
LecrisUT opened this issue Aug 23, 2024 · 0 comments
Open

Running tests without internet connection #14

LecrisUT opened this issue Aug 23, 2024 · 0 comments

Comments

@LecrisUT
Copy link

Hi, while trying to package jaraco.context 6.0.1 I'm hitting issues when running the doctests:

________________________ [doctest] context.repo_context ________________________
264 
265     Check out the repo indicated by url.
266 
267     If dest_ctx is supplied, it should be a context manager
268     to yield the target directory for the check out.
269 
270     >>> repo = repo_context('https://github.com/jaraco/jaraco.context')
271     >>> with repo as dest:
UNEXPECTED EXCEPTION: FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/lib64/python3.9/doctest.py", line 1334, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest context.repo_context[1]>", line 1, in <module>
  File "/usr/lib64/python3.9/contextlib.py", line 119, in __enter__
    return next(self.gen)
  File "/builddir/build/BUILD/jaraco_context-6.0.1/jaraco/context/__init__.py", line 195, in repo_context
    subprocess.check_call(cmd, stdout=stream, stderr=stream)
  File "/usr/lib64/python3.9/subprocess.py", line 368, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/lib64/python3.9/subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib64/python3.9/subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "/usr/lib64/python3.9/subprocess.py", line 1837, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'git'
/builddir/build/BUILD/jaraco_context-6.0.1/jaraco/context/__init__.py:271: UnexpectedException

The issue being that it is trying to git clone. This is not something that pytest-enabler is able to resolve right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant