comparison rust/hg-cpython/src/lib.rs @ 48839:7b068abe4aa2

rust: jettison Python 2 support Differential Revision: https://phab.mercurial-scm.org/D12283
author Augie Fackler <augie@google.com>
date Wed, 02 Mar 2022 10:32:36 -0500
parents 1194394510ba
children 136aa80aa8b2
comparison
equal deleted inserted replaced
48838:cd3e25adcf84 48839:7b068abe4aa2
60 m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?; 60 m.add(py, "revlog", revlog::init_module(py, &dotted_name)?)?;
61 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?; 61 m.add(py, "GraphError", py.get_type::<exceptions::GraphError>())?;
62 Ok(()) 62 Ok(())
63 }); 63 });
64 64
65 #[cfg(not(any(feature = "python27-bin", feature = "python3-bin")))] 65 #[cfg(not(feature = "python3-bin"))]
66 #[test] 66 #[test]
67 #[ignore] 67 #[ignore]
68 fn libpython_must_be_linked_to_run_tests() { 68 fn libpython_must_be_linked_to_run_tests() {
69 // stub function to tell that some tests wouldn't run 69 // stub function to tell that some tests wouldn't run
70 } 70 }