Skip to content

Commit

Permalink
apveyor: simplify test.
Browse files Browse the repository at this point in the history
  • Loading branch information
ankostis committed Sep 25, 2016
1 parent 8fe4fee commit d12fdca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 15 deletions.
22 changes: 8 additions & 14 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
environment:

matrix:
- PYTHON: "C:\\Miniconda"
- PYTHON: "C:\\Python27"
PYTHON_VERSION: "2.7"
- PYTHON: "C:\\Miniconda"
PYTHON_VERSION: "2.7"
GIT_PATH: "C:\\cygwin64\\bin"
GIT_PATH: "C:\\cygwin\\bin"

- PYTHON: "C:\\Miniconda3-x64"
PYTHON_VERSION: "3.4"
- PYTHON: "C:\\Miniconda3-x64"
- PYTHON: "C:\\Python34"
PYTHON_VERSION: "3.4"
GIT_PATH: "C:\\cygwin64\\bin"

Expand All @@ -30,9 +30,11 @@ install:
where git
python --version
python -c "import struct; print(struct.calcsize('P') * 8)"
conda info -a
- conda install --yes --quiet pip
- IF EXIST "%PYTHON%\conda.exe" (
conda info -a &
conda install --yes --quiet pip
)
- pip install nose wheel coveralls
- IF "%PYTHON_VERSION%"=="2.7" (
pip install mock
Expand Down Expand Up @@ -60,15 +62,7 @@ install:
build: off

test_script:
- |
echo "+++ Checking archives for PyPI repo..."
python setup.py bdist_wheel
- IF "%PYTHON_VERSION%"=="3.4" (
nosetests -v --with-coverage
) ELSE (
nosetests -v
)
- "nosetests -v"

#on_success:
# - IF "%PYTHON_VERSION%"=="3.4" (coveralls)
2 changes: 1 addition & 1 deletion git/test/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_blocking_lock_file(self):
wait_lock = BlockingLockFile(my_file, 0.05, wait_time)
self.failUnlessRaises(IOError, wait_lock._obtain_lock)
elapsed = time.time() - start
assert elapsed <= wait_time + 0.02 # some extra time it may cost
assert elapsed <= wait_time + 0.02, elapsed # some extra time it may cost

def test_user_id(self):
assert '@' in get_user_id()
Expand Down

0 comments on commit d12fdca

Please sign in to comment.