File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,11 @@ def python_constraint(self) -> VersionConstraint:
219
219
220
220
@property
221
221
def transitive_python_constraint (self ) -> VersionConstraint :
222
+ warnings .warn (
223
+ "'transitive_python_constraint' is deprecated and will be removed." ,
224
+ DeprecationWarning ,
225
+ stacklevel = 2 ,
226
+ )
222
227
if self ._transitive_python_constraint is None :
223
228
return self ._python_constraint
224
229
Original file line number Diff line number Diff line change @@ -321,7 +321,10 @@ def test_with_constraint() -> None:
321
321
assert new .marker == dependency .marker
322
322
assert new .transitive_marker == dependency .transitive_marker
323
323
assert new .python_constraint == dependency .python_constraint
324
- assert new .transitive_python_constraint == dependency .transitive_python_constraint
324
+ with pytest .warns (DeprecationWarning ):
325
+ assert (
326
+ new .transitive_python_constraint == dependency .transitive_python_constraint
327
+ )
325
328
326
329
327
330
@pytest .mark .parametrize (
You can’t perform that action at this time.
0 commit comments