Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit d12fdca

Browse files
committedSep 25, 2016
apveyor: simplify test.
1 parent 8fe4fee commit d12fdca

File tree

2 files changed

+9
-15
lines changed

2 files changed

+9
-15
lines changed
 

‎.appveyor.yml

+8-14
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
environment:
33

44
matrix:
5-
- PYTHON: "C:\\Miniconda"
5+
- PYTHON: "C:\\Python27"
66
PYTHON_VERSION: "2.7"
77
- PYTHON: "C:\\Miniconda"
88
PYTHON_VERSION: "2.7"
9-
GIT_PATH: "C:\\cygwin64\\bin"
9+
GIT_PATH: "C:\\cygwin\\bin"
1010

1111
- PYTHON: "C:\\Miniconda3-x64"
1212
PYTHON_VERSION: "3.4"
13-
- PYTHON: "C:\\Miniconda3-x64"
13+
- PYTHON: "C:\\Python34"
1414
PYTHON_VERSION: "3.4"
1515
GIT_PATH: "C:\\cygwin64\\bin"
1616

@@ -30,9 +30,11 @@ install:
3030
where git
3131
python --version
3232
python -c "import struct; print(struct.calcsize('P') * 8)"
33-
conda info -a
3433
35-
- conda install --yes --quiet pip
34+
- IF EXIST "%PYTHON%\conda.exe" (
35+
conda info -a &
36+
conda install --yes --quiet pip
37+
)
3638
- pip install nose wheel coveralls
3739
- IF "%PYTHON_VERSION%"=="2.7" (
3840
pip install mock
@@ -60,15 +62,7 @@ install:
6062
build: off
6163

6264
test_script:
63-
- |
64-
echo "+++ Checking archives for PyPI repo..."
65-
python setup.py bdist_wheel
66-
67-
- IF "%PYTHON_VERSION%"=="3.4" (
68-
nosetests -v --with-coverage
69-
) ELSE (
70-
nosetests -v
71-
)
65+
- "nosetests -v"
7266

7367
#on_success:
7468
# - IF "%PYTHON_VERSION%"=="3.4" (coveralls)

‎git/test/test_util.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_blocking_lock_file(self):
9090
wait_lock = BlockingLockFile(my_file, 0.05, wait_time)
9191
self.failUnlessRaises(IOError, wait_lock._obtain_lock)
9292
elapsed = time.time() - start
93-
assert elapsed <= wait_time + 0.02 # some extra time it may cost
93+
assert elapsed <= wait_time + 0.02, elapsed # some extra time it may cost
9494

9595
def test_user_id(self):
9696
assert '@' in get_user_id()

0 commit comments

Comments
 (0)
Please sign in to comment.