From fd84dc4cddafeb9e6c76a483b98157494ca2ecb3 Mon Sep 17 00:00:00 2001 From: Peter Ammon Date: Wed, 19 Jun 2024 17:35:29 -0700 Subject: [PATCH] Remove principal_parser() from yet more of the tests --- src/tests/env.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tests/env.rs b/src/tests/env.rs index 6ba875603..15f2c312e 100644 --- a/src/tests/env.rs +++ b/src/tests/env.rs @@ -1,5 +1,4 @@ use crate::env::{EnvMode, EnvStack, EnvVar, EnvVarFlags, Environment}; -use crate::parser::Parser; use crate::tests::prelude::*; use crate::wchar::prelude::*; use crate::wutil::wgetcwd; @@ -58,7 +57,7 @@ impl Environment for PwdEnvironment { /// Helper for test_timezone_env_vars(). fn return_timezone_hour(tstamp: SystemTime, timezone: &wstr) -> libc::c_int { - let vars = Parser::principal_parser().vars(); + let vars = EnvStack::new_dispatching(); vars.set_one(L!("TZ"), EnvMode::EXPORT, timezone.to_owned());