Revision 08370440e344cc9dd36cc6f48ce702228ba256f0 authored by Mark Mossberg on 22 March 2018, 21:51:48 UTC, committed by GitHub on 22 March 2018, 21:51:48 UTC
In python3 there are changes to how you are supposed to handle overrides of __eq__, as it relates to __hash__ (http://python3porting.com/preparing.html?highlight=hash#implementing-hash) In python2 we changed __eq__, but did nothing for __hash__, so __hash__ kept using the default one provided by object. In python3 it automatically sets __hash__ to None, so we need to explicitly emulate this.
1 parent c79a35f
.travis.yml
dist: trusty
sudo: required
os:
- linux
language: python
python:
- 2.7.13
env:
global:
- CC_TEST_REPORTER_ID=db72f1ed59628c16eb0c00cbcd629c4c71f68aa1892ef42d18c7c2b8326f460a
branches:
only:
- master
- /^(?!wip-).+$/
cache:
pip: true
directories:
- $HOME/virtualenv/python2.7.13/lib/python2.7/site-packages
- $HOME/virtualenv/python2.7.13/bin/
install:
- scripts/travis_install.sh
before_script:
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
- chmod +x ./cc-test-reporter
- ./cc-test-reporter before-build
script:
- scripts/travis_test.sh
after_script:
- ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...