Title: Fix tests that are broken under Python 2.7. by marcusrbrown · Pull Request #86 · gitpython-developers/GitPython · GitHub
Open Graph Title: Fix tests that are broken under Python 2.7. by marcusrbrown · Pull Request #86 · gitpython-developers/GitPython
X Title: Fix tests that are broken under Python 2.7. by marcusrbrown · Pull Request #86 · gitpython-developers/GitPython
Description: In Python 2.7, the unittest module was revamped to match the Python 3 version. Python 2.7 unittest doesn't run class fixtures if the class method isn't named setUpClass(). This fixes the tests that throw AttributeError under Python 2.7 (also mentioned in Issues #20 and #62): "AttributeError: 'TestGit' object has no attribute 'rorepo'" I also tested under Python 2.6 to ensure that those tests would still run. I have a similar patch incoming on master.
Open Graph Description: In Python 2.7, the unittest module was revamped to match the Python 3 version. Python 2.7 unittest doesn't run class fixtures if the class method isn't named setUpClass(). This fixes the te...
X Description: In Python 2.7, the unittest module was revamped to match the Python 3 version. Python 2.7 unittest doesn't run class fixtures if the class method isn't named setUpClass(). This fixe...
Opengraph URL: https://github.com/gitpython-developers/GitPython/pull/86
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:4d467424-37c6-51b8-4720-8120be6e0832 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | A648:1AA320:BA1FC9:FE1E74:6A63B62F |
| html-safe-nonce | 6346ccd0bd641ac8639c584cfba92f2286f1b4d3aaa75e1e32f73ade5d61a513 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjQ4OjFBQTMyMDpCQTFGQzk6RkUxRTc0OjZBNjNCNjJGIiwidmlzaXRvcl9pZCI6IjMyNTA2NTI5NDA0Mjk2Njk5MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | e9c004581c78aeb5510baeb395548d5c6bba7fa9f71e57a4210b3c0ab510d5f3 |
| hovercard-subject-tag | pull_request:3634741 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/gitpython-developers/GitPython/pull/86/files |
| twitter:image | https://avatars.githubusercontent.com/u/831617?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/831617?s=400&v=4 |
| og:image:alt | In Python 2.7, the unittest module was revamped to match the Python 3 version. Python 2.7 unittest doesn't run class fixtures if the class method isn't named setUpClass(). This fixes the te... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b1a203abf5b8fb9010b42a32ce0f19fb6e11e656f254d0d3dcdba4b65a6961a6 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/gitpython-developers/GitPython git https://github.com/gitpython-developers/GitPython.git |
| octolytics-dimension-user_id | 503709 |
| octolytics-dimension-user_login | gitpython-developers |
| octolytics-dimension-repository_id | 1126087 |
| octolytics-dimension-repository_nwo | gitpython-developers/GitPython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1126087 |
| octolytics-dimension-repository_network_root_nwo | gitpython-developers/GitPython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3ae9132c55b60e2a8f9553322217eb369dd24575 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width