mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Remove principal_parser() from yet more of the tests
This commit is contained in:
parent
2bd3bcf7fc
commit
fd84dc4cdd
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
||||||
use crate::env::{EnvMode, EnvStack, EnvVar, EnvVarFlags, Environment};
|
use crate::env::{EnvMode, EnvStack, EnvVar, EnvVarFlags, Environment};
|
||||||
use crate::parser::Parser;
|
|
||||||
use crate::tests::prelude::*;
|
use crate::tests::prelude::*;
|
||||||
use crate::wchar::prelude::*;
|
use crate::wchar::prelude::*;
|
||||||
use crate::wutil::wgetcwd;
|
use crate::wutil::wgetcwd;
|
||||||
|
@ -58,7 +57,7 @@ impl Environment for PwdEnvironment {
|
||||||
|
|
||||||
/// Helper for test_timezone_env_vars().
|
/// Helper for test_timezone_env_vars().
|
||||||
fn return_timezone_hour(tstamp: SystemTime, timezone: &wstr) -> libc::c_int {
|
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());
|
vars.set_one(L!("TZ"), EnvMode::EXPORT, timezone.to_owned());
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue