backport master modules fixes

6 jobs for stable-2.0 in 4 minutes and 42 seconds (queued for 1 second)
latest
Status Job ID Name Coverage
  Build
passed #29156
build:3

00:01:18

 
  Test
failed #29158
allowed to fail
lint:3

00:02:08

failed #29157
pyflakes:3

00:02:03

failed #29159
unittests:3

00:02:02

40.0%
failed #29160
allowed to fail
unittests-modules:3

00:01:16

 
  Deploy
skipped #29161
doc:3
 
Name Stage Failure
failed
unittests-modules:3 Test
$ ./tools/run_tests.sh --no-core
2020-11-17 15:11:45,272:WARNING:repository:2.0:repositories.py:313:build_index Unable to build module anticaptcha: [ImportError] cannot import name 'HcaptchaQuestion' from 'weboob.exceptions' (/builds/weboob/weboob/weboob/exceptions.py)
2020-11-17 15:11:46,359:WARNING:repository:2.0:repositories.py:313:build_index Unable to build module hsbc: [SyntaxError] trailing comma not allowed without surrounding parentheses (browser.py, line 36)
2020-11-17 15:11:46,551:WARNING:repository:2.0:repositories.py:313:build_index Unable to build module lcl: [SyntaxError] trailing comma not allowed without surrounding parentheses (browser.py, line 36)
Errors building modules: anticaptcha, hsbc, lcl
Use --debug to get more information.
=== [ 0%] Getting file:///builds/weboob/weboob/modules
=== [100%] All modules are up-to-date.
ERROR: Job failed: exit code 1
failed
lint:3 Test
=== [  0%] Getting file:///builds/weboob/weboob/modules
=== [100%] All modules are up-to-date.

Modules without tests: afer, ameli, amundi, april, banqueaccord, bforbank, bnpcards, bolden, boursedirect, bouygues, bp, caels, chronopost, cmb, cmmc, cmso, colisprive, colissimo, degiro, edf, ensap, franceconnect, genericnewspaper, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, metalarchives, n26, nalo, netfinca, okc, oney, onlinenet, orange, ovh, pagesjaunes, peertube, redmine, relaiscolis, serebii, sogecartenet, swile, tapatalk, ticketscesu, wiseed, yomoni

Modules without icons: avendrealouer, aviva, bnpcards, bnppere, bolden, boursedirect, btpbanque, capeasi, cesu, cices, cmes, codimd, deathbycaptcha, degiro, ekwateur, ensap, erehsbc, esalia, franceconnect, free, gmf, hellobank, impotsgouvfrpar, lendosphere, linebourse, lucca, materielnet, meslieuxparis, metalarchives, nalo, netfinca, onlinenet, pradoepargne, serebii, sogecartenet, swile, tapatalk, themisbanque, ticketscesu, trainline, unsplash, wiseed

Modules for Python 2 only: airparif, allocine, amazonstorecard, apivie, april, asana, audioaddict, boursedirect, canalplus, carrefourbanque, cci, centquatre, cesu, cityscoot, codimd, colisprive, courtois, cpasbien, dailymotion, degiro, dhl, dpd, dresdenwetter, enercoop, ensap, franceconnect, free, ganassurances, gls, groupama, guerrillamail, happn, hds, hellobank, humanis, ideel, ilmatieteenlaitos, impotsgouvfrpar, ina, inrocks, itella, journaldesfemmes, kickass, kiwibank, kolb, lacentrale, lampiris, laydernier, lyricsdotcom, lyricsplanet, mailinator, meslieuxparis, metalarchives, minutes20, myhabit, netfinca, nuger, okc, openedx, pagesjaunes, pajemploi, parolesmusique, parolesnet, paypal, phpbb, pixabay, playme, poivy, pradoepargne, presseurop, prixcarburants, radiofrance, residentadvisor, rhonealpe, rmll, sachsen, serebii, smc, swile, t411, tarneaud, taz, ticketscesu, tinder, torrentz, transilien, unsplash, vicsec, vicseccard, vine, virginradio, yahoo
ERROR: Job failed: exit code 1
failed
unittests:3 Test
        <body>
<h1>Error: 400 Bad Request</h1>
<p>Sorry, the requested URL <tt>'https://ci.weboob.org/api/v1/modules'</tt>
caused an error:</p>
<pre>Invalid JSON payload.</pre>
</body>
</html>
rm: cannot remove '/tmp/weboob_test.qXPxva/xunit.xml': No such file or directory
ERROR: Job failed: exit code 1
failed
pyflakes:3 Test
    handler(node)
File "/usr/local/lib/python3.9/site-packages/pyflakes/checker.py", line 816, in handleChildren
self.handleNode(node, tree)
File "/usr/local/lib/python3.9/site-packages/pyflakes/checker.py", line 862, in handleNode
handler = self.getNodeHandler(node.__class__)
File "/usr/local/lib/python3.9/site-packages/pyflakes/checker.py", line 696, in getNodeHandler
self._nodeHandlers[node_class] = handler = getattr(self, nodeType)
AttributeError: 'FlakesChecker' object has no attribute 'CONSTANT'
ERROR: Job failed: exit code 1