Skip to content

Commit 129d128

Browse files
committed
dev(hansbug): update the unittests on windows
1 parent 9b4b5d1 commit 129d128

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/conftest.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,12 @@ def plantuml_server_version():
3737
(major, year, v), = re.findall(r'v(?P<major>\d+).(?P<year>\d+).(?P<v>\d+)', raw, re.IGNORECASE)
3838
return int(major), int(year), int(v.lstrip('0') or '0')
3939
else:
40+
pytest.skip('No plantuml server version assigned')
4041
return None
4142

4243

4344
# this is a buggy version which will cause error in plantumlcli
4445
@pytest.fixture(scope='session')
4546
def skip_for_server_v1202307(plantuml_server_version):
46-
if plantuml_server_version == (1, 2023, 7):
47+
if plantuml_server_version is not None and plantuml_server_version == (1, 2023, 7):
4748
pytest.skip('Skipped due to plantuml-server v1.2023.7')

0 commit comments

Comments
 (0)