ttx tests: exclude mocked exceptions on Windows platform testing
This commit is contained in:
parent
3e7b33c22f
commit
189e2487fe
@ -8,6 +8,7 @@ import getopt
|
||||
import logging
|
||||
import os
|
||||
import shutil
|
||||
import sys
|
||||
import tempfile
|
||||
import unittest
|
||||
|
||||
@ -787,6 +788,8 @@ def test_ttx_main_keyboard_interrupt(tmpdir, monkeypatch, capsys):
|
||||
|
||||
|
||||
def test_ttx_main_system_exit(tmpdir, monkeypatch):
|
||||
# Exclude Windows testing. The exception handling here causes Windows platform tests to hang
|
||||
if sys.platform != "win32":
|
||||
with pytest.raises(SystemExit):
|
||||
inpath = os.path.join("Tests", "ttx", "data", "TestTTF.ttx")
|
||||
outpath = os.path.join(str(tmpdir), "TestTTF.ttf")
|
||||
@ -808,6 +811,8 @@ def test_ttx_main_ttlib_error(tmpdir, monkeypatch, capsys):
|
||||
|
||||
|
||||
def test_ttx_main_base_exception(tmpdir, monkeypatch, capsys):
|
||||
# Exclude Windows testing. The exception handling here causes Windows platform tests to hang
|
||||
if sys.platform != "win32":
|
||||
with pytest.raises(SystemExit):
|
||||
inpath = os.path.join("Tests", "ttx", "data", "TestTTF.ttx")
|
||||
outpath = os.path.join(str(tmpdir), "TestTTF.ttf")
|
||||
|
Loading…
x
Reference in New Issue
Block a user