File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change 33from __future__ import annotations
44
55import re
6+ import sys
67import textwrap
78from typing import TYPE_CHECKING
89from pathlib import Path , PurePosixPath
@@ -149,7 +150,19 @@ def test_as_function(
149150 assert github_url (f"scanpydoc.{ module } .{ name } " ) == f"{ prefix } /{ obj_path } #L{ s } -L{ e } "
150151
151152
152- @pytest .mark .parametrize ("cls" , [dict , Mapping ])
153+ @pytest .mark .parametrize (
154+ "cls" ,
155+ [
156+ pytest .param (dict , id = "dict" ),
157+ pytest .param (
158+ Mapping ,
159+ marks = pytest .mark .skipif (
160+ sys .version_info >= (3 , 13 ),
161+ reason = "In Python 3.13+, Mapping is a regular class" ,
162+ ),
163+ ),
164+ ],
165+ )
153166def test_no_line_nos_for_unavailable_source (cls : type ) -> None :
154167 start , end = _get_linenos (cls )
155168 assert start is end is None
You can’t perform that action at this time.
0 commit comments