99 "version, expected" ,
1010 [
1111 (
12- 12 ,
13- "Old thing is deprecated and will be removed in Pillow 12 "
14- r"\(2025 -10-15\)\. Use new thing instead\." ,
12+ 13 ,
13+ "Old thing is deprecated and will be removed in Pillow 13 "
14+ r"\(2026 -10-15\)\. Use new thing instead\." ,
1515 ),
1616 (
1717 None ,
@@ -53,18 +53,18 @@ def test_old_version(deprecated: str, plural: bool, expected: str) -> None:
5353
5454def test_plural () -> None :
5555 expected = (
56- r"Old things are deprecated and will be removed in Pillow 12 \(2025 -10-15\)\. "
56+ r"Old things are deprecated and will be removed in Pillow 13 \(2026 -10-15\)\. "
5757 r"Use new thing instead\."
5858 )
5959 with pytest .warns (DeprecationWarning , match = expected ):
60- _deprecate .deprecate ("Old things" , 12 , "new thing" , plural = True )
60+ _deprecate .deprecate ("Old things" , 13 , "new thing" , plural = True )
6161
6262
6363def test_replacement_and_action () -> None :
6464 expected = "Use only one of 'replacement' and 'action'"
6565 with pytest .raises (ValueError , match = expected ):
6666 _deprecate .deprecate (
67- "Old thing" , 12 , replacement = "new thing" , action = "Upgrade to new thing"
67+ "Old thing" , 13 , replacement = "new thing" , action = "Upgrade to new thing"
6868 )
6969
7070
@@ -77,16 +77,16 @@ def test_replacement_and_action() -> None:
7777)
7878def test_action (action : str ) -> None :
7979 expected = (
80- r"Old thing is deprecated and will be removed in Pillow 12 \(2025 -10-15\)\. "
80+ r"Old thing is deprecated and will be removed in Pillow 13 \(2026 -10-15\)\. "
8181 r"Upgrade to new thing\."
8282 )
8383 with pytest .warns (DeprecationWarning , match = expected ):
84- _deprecate .deprecate ("Old thing" , 12 , action = action )
84+ _deprecate .deprecate ("Old thing" , 13 , action = action )
8585
8686
8787def test_no_replacement_or_action () -> None :
8888 expected = (
89- r"Old thing is deprecated and will be removed in Pillow 12 \(2025 -10-15\)"
89+ r"Old thing is deprecated and will be removed in Pillow 13 \(2026 -10-15\)"
9090 )
9191 with pytest .warns (DeprecationWarning , match = expected ):
92- _deprecate .deprecate ("Old thing" , 12 )
92+ _deprecate .deprecate ("Old thing" , 13 )
0 commit comments