Skip to content

Commit

Permalink
Add a test for construction of EnvironmentInfo.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Sep 2, 2024
1 parent 616d873 commit a16582b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import platform
import sys

import pytest
Expand Down Expand Up @@ -67,3 +68,9 @@ def conditional_skip(request):
pytest.skip("running integration tests only")
if not running_integration_tests and is_integration_test:
pytest.skip("skipping integration tests")


@pytest.fixture
def windows_only():
if platform.system() != 'Windows':
pytest.skip("Windows only")
3 changes: 3 additions & 0 deletions setuptools/msvc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
"""
Environment info about Microsoft Compilers.
>>> getfixture('windows_only')
>>> ei = EnvironmentInfo('amd64')
"""

from __future__ import annotations
Expand Down

0 comments on commit a16582b

Please sign in to comment.