# Path: graphviz/_compat.py
# PY38 = (sys.version_info < (3, 9))
# def get_startupinfo() -> None:
#     def get_startupinfo() -> subprocess.STARTUPINFO:  # pytype: disable=module-attr
# def make_subprocess_arg(arg: typing.Union[str, pathlib.Path]):
#     def make_subprocess_arg(arg: typing.Union[str, pathlib.Path]) -> str:  # noqa: F811


import contextlib
import os
import pathlib
import platform
import subprocess
from graphviz import _compat
"""Test helpers and test globals."""



__all__ = ['EXPECTED_DOT_BINARY',
           'EXPECTED_UNFLATTEN_BINARY',
           'EXPECTED_DEFAULT_ENGINE',
           'EXPECTED_DEFAULT_ENCODING',
           'INVALID_CMD',
           'as_cwd',
           'check_startupinfo', 'StartupinfoMatcher']

EXPECTED_DOT_BINARY = _compat.make_subprocess_arg(pathlib.Path('dot'))


# Path: graphviz/_compat.py
# PY38 = (sys.version_info < (3, 9))
# def get_startupinfo() -> None:
#     def get_startupinfo() -> subprocess.STARTUPINFO:  # pytype: disable=module-attr
# def make_subprocess_arg(arg: typing.Union[str, pathlib.Path]):
#     def make_subprocess_arg(arg: typing.Union[str, pathlib.Path]) -> str:  # noqa: F811


# Path: tests/_common.py
import contextlib
import os
import pathlib
import platform
import subprocess
from graphviz import _compat

"""Test helpers and test globals."""



__all__ = ['EXPECTED_DOT_BINARY',
           'EXPECTED_UNFLATTEN_BINARY',
           'EXPECTED_DEFAULT_ENGINE',
           'EXPECTED_DEFAULT_ENCODING',
           'INVALID_CMD',
           'as_cwd',
           'check_startupinfo', 'StartupinfoMatcher']

EXPECTED_DOT_BINARY = _compat.make_subprocess_arg(pathlib.Path('dot'))


EXPECTED_UNFLATTEN_BINARY = _compat.make_subprocess_arg(pathlib.Path('unflatten'))