openedx / openedx/XBlock

Importing ABC from collections has been deprecated and will be removed in Python 3.10

Open Beginner friendly
#454 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
470
Forks
231
Avg merge
1d 1h
Merged PRs (30d)
6

Description

xblock/test/test_user_service.py
36:    assert isinstance(current_user.emails, collections.Iterable)
39:    assert isinstance(current_user.opt_attrs, collections.Mapping)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with xblock/test/test_user_service.py at lines 36 and 39, where the deprecated collections ABCs are used. Run the focused test file and confirm the compatibility issue is addressed for Python 3.10 while the user-service assertions still pass.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
72/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.