@@ -47,21 +47,41 @@ fn verify_python_in_homebrew_contaner() {
4747
4848 let environments = reporter. environments . lock ( ) . unwrap ( ) . clone ( ) ;
4949
50+ // let python3_12 = PythonEnvironment {
51+ // kind: Some(PythonEnvironmentKind::Homebrew),
52+ // executable: Some(PathBuf::from("/home/linuxbrew/.linuxbrew/bin/python3")),
53+ // version: Some("3.13.0".to_string()), // This can change on CI, so we don't check it
54+ // symlinks: Some(vec![
55+ // // For older versions of Python, we do not have a tonne of symlinks,
56+ // // E.g. for 3.12.7 (which was the latest at some point, at a lot of symlinks)
57+ // // As soon as 3.13 was shipped, the number of symlinks in 3.12.7 was the same as 3.11 (very few)
58+ // // I.e. only the latest versions of python have a lot of symlinks, debt to take these into account and simplify the tests
59+ // PathBuf::from("/home/linuxbrew/.linuxbrew/bin/python3"),
60+ // PathBuf::from("/home/linuxbrew/.linuxbrew/bin/python3.13"),
61+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python3/bin/python3"),
62+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python3/bin/python3.13"),
63+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3"),
64+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3.13"),
65+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3"),
66+ // PathBuf::from("/home/linuxbrew/.linuxbrew/opt/python@3.13/bin/python3.13"),
67+ // // On CI the Python version can change with minor updates, so we don't check the full version.
68+ // // PathBuf::from("/home/linuxbrew/.linuxbrew/Cellar/python@3.13/3.13.0/bin/python3.13"),
69+ // ]),
70+ // ..Default::default()
71+ // };
5072 let python3_12 = PythonEnvironment {
5173 kind : Some ( PythonEnvironmentKind :: Homebrew ) ,
52- executable : Some ( PathBuf :: from ( "/home/linuxbrew/.linuxbrew/bin/python3" ) ) ,
74+ executable : Some ( PathBuf :: from ( "/home/linuxbrew/.linuxbrew/bin/python3.12 " ) ) ,
5375 version : Some ( "3.12.7" . to_string ( ) ) , // This can change on CI, so we don't check it
5476 symlinks : Some ( vec ! [
55- PathBuf :: from( "/home/linuxbrew/.linuxbrew/bin/python3" ) ,
77+ // For older versions of Python, we do not have a tonne of symlinks,
78+ // E.g. for 3.12.7 (which was the latest at some point, at a lot of symlinks)
79+ // As soon as 3.13 was shipped, the number of symlinks in 3.12.7 was the same as 3.11 (very few)
80+ // I.e. only the latest versions of python have a lot of symlinks, debt to take these into account and simplify the tests
5681 PathBuf :: from( "/home/linuxbrew/.linuxbrew/bin/python3.12" ) ,
57- PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3" ) ,
58- PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python3/bin/python3.12" ) ,
59- PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3" ) ,
60- PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python@3/bin/python3.12" ) ,
61- PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python3" ) ,
6282 PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python@3.12/bin/python3.12" ) ,
6383 // On CI the Python version can change with minor updates, so we don't check the full version.
64- // PathBuf::from("/home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.6 /bin/python3.12"),
84+ // PathBuf::from("/home/linuxbrew/.linuxbrew/Cellar/python@3.12/3.12.7_1 /bin/python3.12"),
6585 ] ) ,
6686 ..Default :: default ( )
6787 } ;
@@ -70,6 +90,9 @@ fn verify_python_in_homebrew_contaner() {
7090 executable : Some ( PathBuf :: from ( "/home/linuxbrew/.linuxbrew/bin/python3.11" ) ) ,
7191 version : Some ( "3.11.10" . to_string ( ) ) , // This can change on CI, so we don't check it
7292 symlinks : Some ( vec ! [
93+ // For older versions of Python, we do not have a tonne of symlinks,
94+ // E.g. for 3.12.7 (which was the latest at some point, at a lot of symlinks)
95+ // As soon as 3.13 was shipped, the number of symlinks in 3.12.7 was the same as 3.11 (very few)
7396 PathBuf :: from( "/home/linuxbrew/.linuxbrew/bin/python3.11" ) ,
7497 PathBuf :: from( "/home/linuxbrew/.linuxbrew/opt/python@3.11/bin/python3.11" ) ,
7598 // On CI the Python version can change with minor updates, so we don't check the full version.
0 commit comments