Skip to content

Commit 895c3f8

Browse files
committed
revert
1 parent e14a27b commit 895c3f8

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

crates/pet/tests/ci_test.rs

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -344,43 +344,43 @@ fn compare_environments(env: PythonEnvironment, environment: PythonEnvironment,
344344
let mut env = env.clone();
345345
let mut environment = environment.clone();
346346

347-
// assert_eq!(
348-
// env.category,
349-
// environment.clone().category,
350-
// "Category mismatch when using {} for {:?} and {:?}",
351-
// method,
352-
// environment,
353-
// env
354-
// );
355-
356-
if env.category != environment.clone().category {
357-
error!(
358-
"Category mismatch when using {} for {:?} and {:?}",
359-
method, environment, env
360-
);
361-
}
347+
assert_eq!(
348+
env.category,
349+
environment.clone().category,
350+
"Category mismatch when using {} for {:?} and {:?}",
351+
method,
352+
environment,
353+
env
354+
);
355+
356+
// if env.category != environment.clone().category {
357+
// error!(
358+
// "Category mismatch when using {} for {:?} and {:?}",
359+
// method, environment, env
360+
// );
361+
// }
362362

363363
if let (Some(version), Some(expected_version)) =
364364
(environment.clone().version, env.clone().version)
365365
{
366-
// assert!(
367-
// does_version_match(&version, &expected_version),
368-
// "Version mismatch when using {} for (expected {:?} to start with {:?}) for env = {:?} and environment = {:?}",
369-
// method,
370-
// expected_version,
371-
// version,
372-
// env.clone(),
373-
// environment.clone()
374-
// );
375-
if !does_version_match(&version, &expected_version) {
376-
error!("Version mismatch when using {} for (expected {:?} to start with {:?}) for env = {:?} and environment = {:?}",
366+
assert!(
367+
does_version_match(&version, &expected_version),
368+
"Version mismatch when using {} for (expected {:?} to start with {:?}) for env = {:?} and environment = {:?}",
377369
method,
378370
expected_version,
379371
version,
380372
env.clone(),
381373
environment.clone()
382-
);
383-
}
374+
);
375+
// if !does_version_match(&version, &expected_version) {
376+
// error!("Version mismatch when using {} for (expected {:?} to start with {:?}) for env = {:?} and environment = {:?}",
377+
// method,
378+
// expected_version,
379+
// version,
380+
// env.clone(),
381+
// environment.clone()
382+
// );
383+
// }
384384
}
385385
// We have compared the versions, now ensure they are treated as the same
386386
// So that we can compare the objects easily
@@ -467,18 +467,18 @@ fn compare_environments(env: PythonEnvironment, environment: PythonEnvironment,
467467
}
468468
env.prefix = environment.clone().prefix;
469469

470-
// assert_eq!(
471-
// env, environment,
472-
// "Environment mismatch when using {} for {:?}",
473-
// method, environment
474-
// );
470+
assert_eq!(
471+
env, environment,
472+
"Environment mismatch when using {} for {:?}",
473+
method, environment
474+
);
475475

476-
if env != environment {
477-
error!(
478-
"Environment mismatch when using {} for {:?} and {:?}",
479-
method, environment, env
480-
);
481-
}
476+
// if env != environment {
477+
// error!(
478+
// "Environment mismatch when using {} for {:?} and {:?}",
479+
// method, environment, env
480+
// );
481+
// }
482482
}
483483

484484
fn verify_we_can_get_same_env_info_using_resolve_with_exe(

0 commit comments

Comments
 (0)