Skip to content

Nodejs #849

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add python2.7 failing test
  • Loading branch information
moshe committed Feb 25, 2019
commit 00129e7bbc2bd8fa60aebb86ea3a6386c2b2fc3a
14 changes: 3 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@ python:
- "3.5"
- "3.6"
# - "pypy" - won't work as smmap doesn't work (see gitdb/.travis.yml for details)
matrix:
include:
- python: 3.7
dist: xenial
sudo: required
- python: "nightly"
dist: xenial
sudo: required
allow_failures:
- python: "nightly"
git:
# a higher depth is needed for most of the tests - must be high enough to not actually be shallow
# as we clone our own repository in the process
Expand All @@ -39,9 +29,11 @@ script:
# Make sure we limit open handles to see if we are leaking them
- ulimit -n 128
- ulimit -n
- nosetests -v --with-coverage
- nosetests -v --with-coverage --with-xunit
- if [ "$TRAVIS_PYTHON_VERSION" == '3.4' ]; then flake8 --ignore=W293,E265,E266,W503,W504,E731; fi
- if [ "$TRAVIS_PYTHON_VERSION" == '3.5' ]; then cd doc && make html; fi
-
after_script:
- tomato nosetests.xml
after_success:
- codecov
8 changes: 8 additions & 0 deletions git/test/test_fail.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys


def test_add3():
assert 1 + 1 == 2

# fail in python 2 only
assert sys.version_info.major == 3
3 changes: 2 additions & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
coverage
flake8
nose
mock; python_version=='2.7'
git+https://github.com/moshe/pytest-tomato.git@debug#subdirectory=tomato-lib
mock; python_version=='2.7'