File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ def test_is_invalid_builtin_class() -> None:
205
205
zipfile .Path ,
206
206
zipfile .CompleteDirs ,
207
207
)
208
- if sys .version_info [:2 ] > = (3 , 13 ):
208
+ if sys .version_info [:2 ] = = (3 , 13 ):
209
209
invalid_types += (
210
210
# pathlib
211
211
Path ,
@@ -217,7 +217,7 @@ def test_is_invalid_builtin_class() -> None:
217
217
)
218
218
219
219
invalid_names = {(cls .__module__ , cls .__qualname__ ) for cls in invalid_types }
220
- if sys .version_info [:2 ] < (3 , 13 ):
220
+ if sys .version_info [:2 ] != (3 , 13 ):
221
221
invalid_names |= {
222
222
('pathlib._local' , 'Path' ),
223
223
('pathlib._local' , 'PosixPath' ),
@@ -231,7 +231,7 @@ def test_is_invalid_builtin_class() -> None:
231
231
('zipfile._path' , 'Path' ),
232
232
('zipfile._path' , 'CompleteDirs' ),
233
233
}
234
- assert _INVALID_BUILTIN_CLASSES . keys ( ) == invalid_names
234
+ assert set ( _INVALID_BUILTIN_CLASSES ) == invalid_names
235
235
236
236
237
237
def test_restify_type_hints_containers ():
You can’t perform that action at this time.
0 commit comments