##// END OF EJS Templates
localrepo: handle ValueError during repository opening...
localrepo: handle ValueError during repository opening Python 3.8 can raise ValueError on attempt of an I/O operation against an illegal path. This was causing test-remotefilelog-gc.t to fail on Python 3.8. This commit teaches repository opening to handle ValueError and re-raise an Abort on failure. An arguably better solution would be to implement this logic in the vfs layer. But that seems like a bag of worms and I don't want to go down that rabbit hole. Until users report uncaught ValueError exceptions in the wild, I think it is fine to patch this at the only occurrence our test harness is finding it. Differential Revision: https://phab.mercurial-scm.org/D7944

File last commit:

r45464:3d409f4f default
r45469:9e5b4dbe default
Show More
test-check-pyflakes.t
28 lines | 1006 B | text/troff | Tads3Lexer
/ tests / test-check-pyflakes.t
timeless
tests: mark test-check-pyflakes.t as requiring hg1.0+...
r29138 #require test-repo pyflakes hg10
Matt Mackall
tests: add repository check for pyflakes test...
r21208
timeless
tests: silence test-repo obsolete warning...
r29219 $ . "$TESTDIR/helpers-testrepo.sh"
Simon Heimberg
tests: run pyflakes on files from manifest which could be python files...
r19377
run pyflakes on all tracked files ending in .py or without a file ending
(skipping binary file random-seed)
Matt Mackall
tests: add repository check for pyflakes test...
r21208
Augie Fackler
filterpyflakes: move self-test into test file...
r33367 $ cat > test.py <<EOF
> print(undefinedname)
> EOF
av6
tests: consistently use pyflakes as a Python module...
r45463 $ $PYTHON -m pyflakes test.py 2>/dev/null | "$TESTDIR/filterpyflakes.py"
av6
tests: adjust to the new format in pyflakes output...
r45464 test.py:1:* undefined name 'undefinedname' (glob)
Augie Fackler
filterpyflakes: move self-test into test file...
r33367
Jun Wu
test-check-pyflakes: do not leave test.py in the repo...
r33418 $ cd "`dirname "$TESTDIR"`"
Augie Fackler
filterpyflakes: move self-test into test file...
r33367
Yuya Nishihara
tests: alias syshg and syshgenv so they can be switched conditionally
r33199 $ testrepohg locate 'set:**.py or grep("^#!.*python")' \
Adam Simpkins
tests: use the system hg for examining the local repository...
r33116 > -X hgext/fsmonitor/pywatchman \
Augie Fackler
tests: exclude python-zstandard from pyflakes analysis
r30894 > -X mercurial/pycompat.py -X contrib/python-zstandard \
Pulkit Goyal
cbor: fix core test-check*...
r37145 > -X mercurial/thirdparty/cbor \
Gregory Szorc
tests: silence pyflakes for thirdparty/concurrent...
r37643 > -X mercurial/thirdparty/concurrent \
Gregory Szorc
tests: ignore zope packages when running pyflakes...
r37199 > -X mercurial/thirdparty/zope \
Pulkit Goyal
pycompat: make pycompat demandimport friendly...
r29584 > 2>/dev/null \
Manuel Jacob
tests: use pyflakes module instead of pyflakes executable...
r44951 > | xargs $PYTHON -m pyflakes 2>/dev/null | "$TESTDIR/filterpyflakes.py"
av6
tests: adjust to the new format in pyflakes output...
r45464 contrib/perf.py:*:* undefined name 'xrange' (glob) (?)
mercurial/hgweb/server.py:*:* undefined name 'reload' (glob) (?)
mercurial/util.py:*:* undefined name 'file' (glob) (?)
mercurial/encoding.py:*:* undefined name 'localstr' (glob) (?)
Matt Mackall
tests: fix pyflakes test whitespace breakage
r22053