Skip to content

Commit a16582b

Browse files
committed
Add a test for construction of EnvironmentInfo.
1 parent 616d873 commit a16582b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

conftest.py

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import platform
12
import sys
23

34
import pytest
@@ -67,3 +68,9 @@ def conditional_skip(request):
6768
pytest.skip("running integration tests only")
6869
if not running_integration_tests and is_integration_test:
6970
pytest.skip("skipping integration tests")
71+
72+
73+
@pytest.fixture
74+
def windows_only():
75+
if platform.system() != 'Windows':
76+
pytest.skip("Windows only")

setuptools/msvc.py

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
"""
22
Environment info about Microsoft Compilers.
3+
4+
>>> getfixture('windows_only')
5+
>>> ei = EnvironmentInfo('amd64')
36
"""
47

58
from __future__ import annotations

0 commit comments

Comments
 (0)