Skip to content

Investigate win failures #6351

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

Closed
32 changes: 16 additions & 16 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ trigger:
- features

variables:
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml -vv"
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml testing/test_pytester.py"
PYTEST_COVERAGE: '0'

jobs:
Expand All @@ -17,28 +17,28 @@ jobs:
# pypy3:
# python.version: 'pypy3'
# tox.env: 'pypy3'
py35-xdist:
python.version: '3.5'
tox.env: 'py35-xdist'
# Coverage for:
# - test_supports_breakpoint_module_global
PYTEST_COVERAGE: '1'
py36-xdist:
python.version: '3.6'
tox.env: 'py36-xdist'
# py35-xdist:
# python.version: '3.5'
# tox.env: 'py35-xdist'
# # Coverage for:
# # - test_supports_breakpoint_module_global
# PYTEST_COVERAGE: '1'
# py36-xdist:
# python.version: '3.6'
# tox.env: 'py36-xdist'
py37:
python.version: '3.7'
tox.env: 'py37-twisted-numpy'
# Coverage for:
# - _py36_windowsconsoleio_workaround (with py36+)
# - test_request_garbage (no xdist)
PYTEST_COVERAGE: '1'
py37-linting/docs/doctesting:
python.version: '3.7'
tox.env: 'linting,docs,doctesting'
py37-pluggymaster-xdist:
python.version: '3.7'
tox.env: 'py37-pluggymaster-xdist'
# py37-linting/docs/doctesting:
# python.version: '3.7'
# tox.env: 'linting,docs,doctesting'
# py37-pluggymaster-xdist:
# python.version: '3.7'
# tox.env: 'py37-pluggymaster-xdist'
maxParallel: 10

steps:
Expand Down
1 change: 1 addition & 0 deletions src/_pytest/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ def create_cleanup_lock(p: Path) -> Path:

def register_cleanup_lock_removal(lock_path: Path, register=atexit.register):
"""registers a cleanup function for removing a lock, by default on atexit"""
return
pid = os.getpid()

def cleanup_on_exit(lock_path: Path = lock_path, original_pid: int = pid) -> None:
Expand Down
1 change: 1 addition & 0 deletions testing/test_capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ class TestLoggingInteraction:
def test_logging_stream_ownership(self, testdir):
p = testdir.makepyfile(
"""\
from _pytest import capture
def test_logging():
import logging
import pytest
Expand Down