| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
This should fix the buildbots, see python#27436 (comment) Signed-off-by: Filipe Laíns <lains@riseup.net>
|
There are some tests to update: ======================================================================
ERROR: test_files (test.test_importlib.test_reader.NamespaceReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/pull_request.edelsohn-debian-z/build/Lib/test/test_importlib/test_reader.py", line 120, in test_files
namespacedata = import_module('namespacedata01')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/pull_request.edelsohn-debian-z/build/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1061, in _gcd_import
File "<frozen importlib._bootstrap>", line 1038, in _find_and_load
File "<frozen importlib._bootstrap>", line 1008, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'namespacedata01'
======================================================================
ERROR: test_resource_path (test.test_importlib.test_reader.NamespaceReaderTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/dje/cpython-buildarea/pull_request.edelsohn-debian-z/build/Lib/test/test_importlib/test_reader.py", line 108, in test_resource_path
namespacedata = import_module('namespacedata01')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/dje/cpython-buildarea/pull_request.edelsohn-debian-z/build/Lib/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1061, in _gcd_import
File "<frozen importlib._bootstrap>", line 1038, in _find_and_load
File "<frozen importlib._bootstrap>", line 1008, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'namespacedata01'
----------------------------------------------------------------------
|
Sorry, something went wrong.
Signed-off-by: Filipe Laíns <lains@riseup.net>
|
namespacedata01 is only used in the tests, so it shouldn't affect the frozen importlib. I just forgot the g at the end of my sed expression so it only replaced the first namespacedata01 in each line 😅 |
Sorry, something went wrong.
Haha, yeah, I noticed when looking closer at the errors and then I updated the comment. Seems that not faster than you checked 😅 |
Sorry, something went wrong.
|
So is the plan here to just cause the files to be deleted on the buildbots, but not merge this change? Just force the buildbots to lose the files long enough that they start passing on main? |
Sorry, something went wrong.
|
Either that or plainly rename the data, but I just noticed I forgot .gitattributes 🤦 Let's let the buildbots run and after that see if they are still failing on new commits. I don't think they should since the data was removed here and they will have to check it out again. |
Sorry, something went wrong.
|
I'd like not to have to rename the data, because that creates additional divergence from both ../data01 and also from the implementation in importlib_resources. I'd like to have whatever the permanent solution is not to carry the baggage of this incident. |
Sorry, something went wrong.
|
The original PR also introduced a file descriptor leak that needs to be addressed: https://buildbot.python.org/all/#/builders/320/builds/107 |
Sorry, something went wrong.
|
(moved comment to #27436) |
Sorry, something went wrong.
|
(moved comment to #27436) |
Sorry, something went wrong.
|
This is done its duty and is no longer needed (see #27497). Thanks Filipe. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
This should fix the buildbots, see
#27436 (comment)
Signed-off-by: Filipe Laíns lains@riseup.net
https://bugs.python.org/issue44771