Skip to content

Commit

Permalink
test: class should have docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
askhl committed Jul 19, 2024
1 parent ecf9ccf commit 9c4c2e5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/test_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,15 +66,15 @@ def test_source_for_file_windows(tmp_path: pathlib.Path) -> None:


class RunpyPathTest(CoverageTest):
run_in_temp_dir = True
"""Ensure runpy.run_path(path) works when path is pathlib.Path.
def test_runpy_path(self):
"""Ensure runpy.run_path(path) works when path is pathlib.Path.
runpy.run_path(pathlib.Path(...)) causes __file__ to be a Path,
which may make source_for_file() stumble (#1819).
"""

runpy.run_path(pathlib.Path(...)) causes __file__ to be a Path,
which may make source_for_file() stumble (#1819).
"""
run_in_temp_dir = True

def test_runpy_path(self):
self.check_coverage("""\
import runpy
from pathlib import Path
Expand Down

0 comments on commit 9c4c2e5

Please sign in to comment.