warning: use of deprecated associated function `chrono::FixedOffset::east`: use `east_opt()` instead
--> src/repository.rs:42:39
|
42 | let tz = chrono::FixedOffset::east(self.timezone);
| ^^^^
|
= note: `#[warn(deprecated)]` on by default
warning: unused variable: `wt`
--> src/controldir.rs:531:9
|
531 | let wt = create_standalone_workingtree(tmp_dir.path(), ...
| ^^ help: if this is intentional, prefix it with an underscore: `_wt`
|
= note: `#[warn(unused_variables)]` on by default
warning: `breezyshim` (lib) generated 1 warning
warning: `breezyshim` (lib test) generated 2 warnings (1 duplicate) (run `cargo fix --lib -p breezyshim --tests` to apply 1 suggestion)
Finished test [unoptimized + debuginfo] target(s) in 0.03s
Running unittests src/lib.rs (target/debug/deps/breezyshim-eb16eef8b3176a9c)
running 4 tests
test version::test_version_serialize ... ok
test version::test_version ... ok
test controldir::test_create_standalone_workingtree ... FAILED
Unable to load plugin 'rewrite' from '/usr/lib/python3/dist-packages/breezy/plugins/rewrite': "Key b'Bazaar-NG meta directory, format 1\\n' already registered"
Unable to load plugin 'weave_fmt' from '/usr/lib/python3/dist-packages/breezy/plugins/weave_fmt': "Key b'Bazaar-NG meta directory, format 1\\n' already registered"
test plugin::tests::test_load_plugins ... ok
failures:
---- controldir::test_create_standalone_workingtree stdout ----
thread 'controldir::test_create_standalone_workingtree' panicked at 'called `Result::unwrap()` on an `Err` value: PyErr { type: <class 'AssertionError'>, value: AssertionError('Already loaded: [\' File "<frozen importlib._bootstrap>", line 1176, in _find_and_load\\n\', \' File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked\\n\', \' File "<frozen importlib._bootstrap>", line 690, in _load_unlocked\\n\', \' File "<frozen importlib._bootstrap_external>", line 940, in exec_module\\n\', \' File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\\n\', \' File "/usr/lib/python3/dist-packages/breezy/bzr/__init__.py", line 516, in <module>\\n format_name = config.GlobalStack().get(\\\'default_format\\\')\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 3515, in get\\n for store, section in self.iter_sections():\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 3461, in iter_sections\\n yield from sections()\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 3252, in get_sections\\n for store, s in sections:\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 3037, in get_sections\\n self.load()\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 2984, in load\\n self._load_from_string(content)\\n\', \' File "/usr/lib/python3/dist-packages/breezy/config.py", line 2996, in _load_from_string\\n raise AssertionError(\\\'Already loaded: {!r}\\\'.format(traceback.format_stack()))\\n\']'), traceback: Some(<traceback object at 0x7f685dcea800>) }', src/lib.rs:71:33
stack backtrace:
0: rust_begin_unwind
at /usr/src/rustc-1.70.0/library/std/src/panicking.rs:578:5
1: core::panicking::panic_fmt
at /usr/src/rustc-1.70.0/library/core/src/panicking.rs:67:14
2: core::result::unwrap_failed
at /usr/src/rustc-1.70.0/library/core/src/result.rs:1687:5
3: core::result::Result<T,E>::unwrap
at /usr/src/rustc-1.70.0/library/core/src/result.rs:1089:23
4: breezyshim::init_bzr::{{closure}}
at ./src/lib.rs:71:9
5: pyo3::marker::Python::with_gil
at /home/jelmer/.cargo/registry/src/github.com-1ecc6299db9ec823/pyo3-0.20.2/src/marker.rs:434:9
6: breezyshim::init_bzr
at ./src/lib.rs:70:5
7: breezyshim::init::{{closure}}
at ./src/lib.rs:106:9
8: std::sync::once::Once::call_once::{{closure}}
at /usr/src/rustc-1.70.0/library/std/src/sync/once.rs:149:41
9: std::sys_common::once::futex::Once::call
at /usr/src/rustc-1.70.0/library/std/src/sys_common/once/futex.rs:124:21
10: std::sync::once::Once::call_once
at /usr/src/rustc-1.70.0/library/std/src/sync/once.rs:149:9
11: breezyshim::init
at ./src/lib.rs:89:5
12: breezyshim::controldir::test_create_standalone_workingtree
at ./src/controldir.rs:529:5
13: breezyshim::controldir::test_create_standalone_workingtree::{{closure}}
at ./src/controldir.rs:528:41
14: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
15: core::ops::function::FnOnce::call_once
at /usr/src/rustc-1.70.0/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
failures:
controldir::test_create_standalone_workingtree
test result: FAILED. 3 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.15s
error: test failed, to rerun pass `--lib`