TDD Hashtag table - TypeError in 01_define_a_custom_hashtable_class

Open
#253 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing-qa

Research direction

Start with hashtable/01_hashtable_prototype/01_define_a_custom_hashtable_class/hashtable.py and the 01_define_a_custom_hashtable_class exercise. Run its test or reproduction on the reported setup, then inspect the initialization around self.values = capacity * [None]. Done means the exercise no longer raises the reported TypeError.

Written by the indexing model from the issue text.

Description

source: hashtable.py in 01_define_a_custom_hashtable_class

Describe the bug
running the test throws an error for line self.values = capacity * [None]
TypeError: cant multiply sequence by non-int of type ' NoneType'

That's a pity, because I really like this TDD cource!

Running on Windows 10 with python version 3.7.3

Dominant language
Jupyter Notebook
Stars
5.2k
Forks
5.3k
Avg merge
4d 10h
Merged PRs (30d)
10

Contributor guide

No contributing guide indexed for this repository

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.

More from realpython/materials

All issues in realpython/materials

Similar issues

More Testing & QA issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.