@@ -1193,7 +1193,7 @@ def test_custom_dataclass_names():
1193
1193
]
1194
1194
1195
1195
1196
- @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python > 3.10' )
1196
+ @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python >= 3.10' )
1197
1197
def test_slots () -> None :
1198
1198
@dataclasses .dataclass (slots = True )
1199
1199
class Model :
@@ -1223,7 +1223,7 @@ class Model:
1223
1223
val .validate_assignment (m , 'x' , 'abc' )
1224
1224
1225
1225
1226
- @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python > 3.10' )
1226
+ @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python >= 3.10' )
1227
1227
def test_dataclass_slots_field_before_validator ():
1228
1228
@dataclasses .dataclass (slots = True )
1229
1229
class Foo :
@@ -1257,7 +1257,7 @@ def validate_b(cls, v: bytes, info: core_schema.FieldValidationInfo) -> bytes:
1257
1257
assert dataclasses .asdict (foo ) == {'a' : 1 , 'b' : 'hello world!' }
1258
1258
1259
1259
1260
- @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python > 3.10' )
1260
+ @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python >= 3.10' )
1261
1261
def test_dataclass_slots_field_after_validator ():
1262
1262
@dataclasses .dataclass (slots = True )
1263
1263
class Foo :
@@ -1356,7 +1356,7 @@ class DuplicateDifferentSlots:
1356
1356
),
1357
1357
],
1358
1358
)
1359
- @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python > 3.10' )
1359
+ @pytest .mark .skipif (sys .version_info < (3 , 10 ), reason = 'slots are only supported for dataclasses in Python >= 3.10' )
1360
1360
def test_slots_dataclass_subclass (revalidate_instances , input_value , expected ):
1361
1361
schema = core_schema .dataclass_schema (
1362
1362
FooDataclassSlots ,
0 commit comments