Skip to content

Commit

Permalink
Use simple import
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Aug 2, 2024
1 parent a826df6 commit 3b86d4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions distutils/tests/test_extension.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
"""Tests for distutils.extension."""

import os
import pathlib
import warnings
from pathlib import Path

from distutils.extension import Extension, read_setup_file

Expand Down Expand Up @@ -77,7 +77,7 @@ def test_extension_init(self):
Extension('name', ['file', 1])
ext = Extension('name', ['file1', 'file2'])
assert ext.sources == ['file1', 'file2']
ext = Extension('name', [Path('file1'), Path('file2')])
ext = Extension('name', [pathlib.Path('file1'), pathlib.Path('file2')])
assert ext.sources == ['file1', 'file2']

# others arguments have defaults
Expand Down

0 comments on commit 3b86d4b

Please sign in to comment.