Here are some tips for getting everything installed:
Ubuntu:
If you have some missing packages when running the tests, you can install them by doing
sudo apt-get build-dep python3.4
Things I did to make a patch for http://bugs.python.org/issue23581 :
- Edited the file cpython/Lib/unittest/test/testmock/testmagicmethods.py and added a small test
- Tested the unittest module by running ./python -m test test_unittest to see if the new test failed in the way described in the bug-report
- Edited the file cpython/Lib/unittest/mock.py (added matmul to numerics)
- Ran the test again, now it passed :)
- See the changes: hg diff
- Make a patch: hg diff > issue23581.patch
- Go to bugtracker and submit patch.