As Michael mentions, it's not clear to me that this was reverted in
upstream python.  I did a test against python 3.10.0b4 and 3.9.6 and was
able to see the same problem in both.

The above line from Chris is a very efficient test case.
./brz -Derror selftest -v -Oselftest.timeout=6000 
breezy.tests.test_plugins.TestPlugins

The python PR addresses https://bugs.python.org/issue43105,
which links to 
https://mail.python.org/archives/list/python-...@python.org/thread/DE3MDGB2JGOJ3X4NWEGJS26BK6PJUPKW/
 ,
which talks about sys.path problems when using '.' as a method to reference CWD.

I'm testing this change, which makes the above TestPlugins pass but
still has failures elsewhere

--- old/breezy/plugin.py        2020-07-28 02:11:05 +0000
+++ new/breezy/plugin.py        2021-07-26 22:50:14 +0000
@@ -154,6 +154,8 @@
     _install_importer_if_needed(extra_details)
 
     paths = _iter_plugin_paths(_env_plugin_path(), path)
+    # Workaround regression in py3.9.5 where '.' doesn't get treated as cwd
+    paths = [os.getcwd() if path == '.' else path for path in paths]
 
     return _Path(name, blocks, extra_details, paths)


** Bug watch added: Python Roundup #43105
   http://bugs.python.org/issue43105

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1932313

Title:
  Breezy 3.2.0+bzr7543-1 FTBFS

To manage notifications about this bug go to:
https://bugs.launchpad.net/brz/+bug/1932313/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to