@@ -2462,7 +2462,7 @@ mod tests {
24622462 pyo3_cross : None ,
24632463 pyo3_cross_lib_dir : None ,
24642464 pyo3_cross_python_implementation : Some ( "PyPy" . into ( ) ) ,
2465- pyo3_cross_python_version : Some ( "3.10 " . into ( ) ) ,
2465+ pyo3_cross_python_version : Some ( "3.11 " . into ( ) ) ,
24662466 } ;
24672467
24682468 let triple = triple ! ( "x86_64-unknown-linux-gnu" ) ;
@@ -2477,11 +2477,11 @@ mod tests {
24772477 implementation: PythonImplementation :: PyPy ,
24782478 version: PythonVersion {
24792479 major: 3 ,
2480- minor: 10
2480+ minor: 11
24812481 } ,
24822482 shared: true ,
24832483 abi3: false ,
2484- lib_name: Some ( "pypy3.10 -c" . into( ) ) ,
2484+ lib_name: Some ( "pypy3.11 -c" . into( ) ) ,
24852485 lib_dir: None ,
24862486 executable: None ,
24872487 pointer_width: None ,
@@ -2726,22 +2726,30 @@ mod tests {
27262726 "python3.7md" ,
27272727 ) ;
27282728
2729- // PyPy 3.9 includes ldversion
2729+ // PyPy 3.11 includes ldversion
27302730 assert_eq ! (
2731- super :: default_lib_name_unix( PythonVersion { major: 3 , minor: 9 } , PyPy , None , false )
2732- . unwrap( ) ,
2733- "pypy3.9-c" ,
2731+ super :: default_lib_name_unix(
2732+ PythonVersion {
2733+ major: 3 ,
2734+ minor: 11
2735+ } ,
2736+ PyPy ,
2737+ None ,
2738+ false
2739+ )
2740+ . unwrap( ) ,
2741+ "pypy3.11-c" ,
27342742 ) ;
27352743
27362744 assert_eq ! (
27372745 super :: default_lib_name_unix(
27382746 PythonVersion { major: 3 , minor: 9 } ,
27392747 PyPy ,
2740- Some ( "3.9d " ) ,
2748+ Some ( "3.11d " ) ,
27412749 false
27422750 )
27432751 . unwrap( ) ,
2744- "pypy3.9d -c" ,
2752+ "pypy3.11d -c" ,
27452753 ) ;
27462754
27472755 // free-threading adds a t suffix
@@ -3046,7 +3054,10 @@ mod tests {
30463054 fn test_build_script_outputs_base ( ) {
30473055 let interpreter_config = InterpreterConfig {
30483056 implementation : PythonImplementation :: CPython ,
3049- version : PythonVersion { major : 3 , minor : 9 } ,
3057+ version : PythonVersion {
3058+ major : 3 ,
3059+ minor : 11 ,
3060+ } ,
30503061 shared : true ,
30513062 abi3 : false ,
30523063 lib_name : Some ( "python3" . into ( ) ) ,
@@ -3064,6 +3075,8 @@ mod tests {
30643075 "cargo:rustc-cfg=Py_3_7" . to_owned( ) ,
30653076 "cargo:rustc-cfg=Py_3_8" . to_owned( ) ,
30663077 "cargo:rustc-cfg=Py_3_9" . to_owned( ) ,
3078+ "cargo:rustc-cfg=Py_3_10" . to_owned( ) ,
3079+ "cargo:rustc-cfg=Py_3_11" . to_owned( ) ,
30673080 ]
30683081 ) ;
30693082
@@ -3077,6 +3090,8 @@ mod tests {
30773090 "cargo:rustc-cfg=Py_3_7" . to_owned( ) ,
30783091 "cargo:rustc-cfg=Py_3_8" . to_owned( ) ,
30793092 "cargo:rustc-cfg=Py_3_9" . to_owned( ) ,
3093+ "cargo:rustc-cfg=Py_3_10" . to_owned( ) ,
3094+ "cargo:rustc-cfg=Py_3_11" . to_owned( ) ,
30803095 "cargo:rustc-cfg=PyPy" . to_owned( ) ,
30813096 ]
30823097 ) ;
@@ -3253,9 +3268,13 @@ mod tests {
32533268
32543269 // PyPy
32553270 config. implementation = PythonImplementation :: PyPy ;
3271+ config. version = PythonVersion {
3272+ major : 3 ,
3273+ minor : 11 ,
3274+ } ;
32563275 config. lib_name = None ;
32573276 config. apply_default_lib_name_to_config_file ( & unix) ;
3258- assert_eq ! ( config. lib_name, Some ( "pypy3.9 -c" . into( ) ) ) ;
3277+ assert_eq ! ( config. lib_name, Some ( "pypy3.11 -c" . into( ) ) ) ;
32593278
32603279 config. implementation = PythonImplementation :: CPython ;
32613280
0 commit comments