Skip to content

Commit

Permalink
Skip two failing tests because symlink() in pypy for windows is not i…
Browse files Browse the repository at this point in the history
…mplemented.
  • Loading branch information
tristanlatr committed Sep 15, 2024
1 parent 207790e commit 3563545
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pydoctor/test/test_commandline.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import re
import sys

import pytest

from pydoctor.options import Options
from pydoctor import driver

Expand Down Expand Up @@ -67,6 +69,7 @@ def test_projectbasedir_absolute(tmp_path: Path) -> None:
assert options.projectbasedirectory.is_absolute()


@pytest.mark.skipif("platform.python_implementation() == 'PyPy' and platform.system() == 'Windows'")
def test_projectbasedir_symlink(tmp_path: Path) -> None:
"""
The --project-base-dir option, when given a path containing a symbolic link,
Expand Down Expand Up @@ -206,6 +209,7 @@ def test_main_return_non_zero_on_warnings() -> None:
assert 'report_module.py:9: Cannot find link target for "BadLink"' in stream.getvalue()


@pytest.mark.skipif("platform.python_implementation() == 'PyPy' and platform.system() == 'Windows'")
def test_main_symlinked_paths(tmp_path: Path) -> None:
"""
The project base directory and package/module directories are normalized
Expand Down

0 comments on commit 3563545

Please sign in to comment.