IronLanguages / IronLanguages/ironpython3
Failure in test_collections during CI
Open
Nobody has claimed this yet.
testing
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 316
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 1
Description
Saw the following failure during CI for netcoreapp2.1.CPython.test_collections:
FAILED (errors=1)
X netcoreapp2.1.CPython.test_collections [3s 239ms]
Error Message:
Traceback (most recent call last):
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\test\test_collections.py", line 1293, in test_main
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\test\support\__init__.py", line 1812, in run_unittest
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\test\support\__init__.py", line 1787, in _run_suite
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\test\test_collections.py", line 1298, in <module>
test.support.TestFailed: Traceback (most recent call last):
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\test\test_collections.py", line 313, in test_pickle
q = loads(dumps(p, protocol))
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\pickle.py", line 1558, in _loads
return _Unpickler(file, fix_imports=fix_imports,
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\pickle.py", line 1041, in load
dispatch[key[0]](self)
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\pickle.py", line 1336, in load_global
klass = self.find_class(module, name)
File "D:\a\ironpython3\ironpython3\Src\StdLib\Lib\pickle.py", line 1386, in find_class
__import__(module, level=0)
ImportError: No module named 'copy_reg'
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Src/StdLib/Lib/test/test_collections.py, especially test_pickle, and reproduce the netcoreapp2.1.CPython.test_collections failure. Trace the copy_reg import through Src/StdLib/Lib/pickle.py and the IronPython runtime; done means the test passes without the ImportError in CI.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, python
- Domain
- backend, testing-qa
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100