Skip to content

Commit

Permalink
Use importskip correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewHambley committed Apr 3, 2024
1 parent d839407 commit fb70521
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions tests/unit_tests/parse/c/test_c_analyser.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,16 @@
Test CAnalyser.
"""
from pytest import importorskip
importorskip("clang")

from pathlib import Path # noqa: E402
from typing import List, Tuple # noqa: E402
from unittest import mock # noqa: E402
from unittest.mock import Mock # noqa: E402
from pathlib import Path
from typing import List, Tuple
from unittest import mock
from unittest.mock import Mock

import clang # noqa: E402 # type: ignore
from fab.build_config import BuildConfig
from fab.parse.c import CAnalyser, AnalysedC

from fab.build_config import BuildConfig # noqa: E402
from fab.parse.c import CAnalyser, AnalysedC # noqa: E402
from pytest import importorskip
clang = importorskip("clang")


def test_simple_result(tmp_path):
Expand Down

0 comments on commit fb70521

Please sign in to comment.