anarcat
dbbb64cd90
Merge pull request #283 from cjmayo/python3_32
...
{python3_32} fixes for Python 3 + Travis test: fix threads
2019-09-11 09:47:44 -04:00
anarcat
492058a360
Merge pull request #281 from cjmayo/python3_30
...
{python3_30} Python3: fix decoding strings
2019-09-11 09:47:10 -04:00
anarcat
8eadc5f8a1
Merge pull request #280 from cjmayo/python3_29
...
{python3_29} fixes for Python 3: fix running problems in Python 3
2019-09-11 09:46:48 -04:00
anarcat
facccd54d3
Merge pull request #278 from cjmayo/python3_27
...
{python3_27} Python3: fix csvlog
2019-09-11 09:45:18 -04:00
Petr Dlouhý
f272206110
Python3: fix decoding strings
2019-09-10 19:52:23 +01:00
Petr Dlouhý
55a7973b93
Python3: fix csvlog
2019-09-10 19:42:26 +01:00
Petr Dlouhý
e10f25b968
fixes for Python 3: fix running problems in Python 3
2019-09-10 19:30:09 +01:00
Petr Dlouhý
57f7ba0979
fixes for Python 3 + Travis test: fix threads
2019-09-09 19:51:30 +01:00
anarcat
5179e47c52
Merge pull request #277 from linkchecker/python3_23_alt
...
Fix test_console.py on Python 3
2019-09-09 14:13:45 -04:00
Marius Gedminas
60f9f80b9f
Fix test_console.py on Python 3
...
This is a alternative fix I suggested in the comments on PR #273 .
2019-09-09 18:52:29 +03:00
anarcat
4e6c806bff
Merge pull request #274 from cjmayo/python3_24
...
{python3_24} Python3: fix logger
2019-09-09 11:50:04 -04:00
Marius Gedminas
bb573e5eb1
Merge pull request #272 from cjmayo/python3_22
...
{python3_22} Python3: fix decode_parts function
2019-09-09 18:37:49 +03:00
anarcat
5c9376cfe2
Merge pull request #276 from cjmayo/python3_26
...
{python3_26} Python3: fix fileutil
2019-09-09 09:40:18 -04:00
anarcat
d9e9a379f8
Merge pull request #275 from cjmayo/python3_25
...
{python3_25} Python3: fix fileurl
2019-09-09 09:38:54 -04:00
Marius Gedminas
b8b9a9003b
Merge pull request #271 from linkchecker/py37
...
Add Python 3.7 to the Travis CI build matrix
2019-09-09 09:49:46 +03:00
Petr Dlouhý
0d7a2cac72
Python3: fix decode_parts function
2019-09-06 19:45:20 +01:00
Petr Dlouhý
9156576778
Python3: fix logger
2019-09-06 19:41:37 +01:00
Petr Dlouhý
ffb0a68ff7
Python3: fix fileurl
2019-09-05 19:41:53 +01:00
Marius Gedminas
3fc44c30db
Recognize the existence of Python 3.7
...
(The tests don't pass yet, see #205.)
2019-09-05 11:16:30 +03:00
Marius Gedminas
9fb1cc98c7
Merge pull request #270 from linkchecker/fix-tests-on-master
...
Fix failing test
2019-09-05 11:08:11 +03:00
anarcat
59ab0644fd
Merge pull request #230 from cjmayo/python3_20
...
{python3_20} Python3: decode parts before submitting them to urllib.quote()
2019-09-04 09:48:19 -04:00
Marius Gedminas
0d58a39376
Fix failing test
...
http://www.heise.de/ now does a redirect to HTTPS instead of denying our
crawl via robots.txt.
Fixes #269 .
2019-09-04 14:04:07 +03:00
anarcat
066f5c664c
Merge pull request #260 from GUI/csv
...
Fix CSV output containing increasing number of null byte characters
2019-06-02 21:17:09 -04:00
Nick Muerdter
fb3f65cdcc
Fix CSV output containing increasing number of null byte characters.
...
The CSV buffer is being truncated on each new row, but since the
stream's pointer isn't also being reset, each new row starts at the same
position as the previous row, but with null bytes up until that point.
This leads to increasing growth in the length of each CSV row, since
each line will be padded with null bytes equivalent to the previous
row's length.
2019-05-31 18:52:57 -06:00
Petr Dlouhý
a6643034fb
Python3: decode parts before submitting them to urllib.quote()
2019-05-10 20:06:01 +01:00
Chris Mayo
1c2e6c465e
squash! Python3: fix strformat ascii_safe() and unicode_safe()
2019-05-10 08:58:52 -04:00
Petr Dlouhý
ac14585a78
Python3: fix strformat for test_file
2019-05-10 08:58:52 -04:00
Petr Dlouhý
acaf8e671e
Python3: fix strformat unicode_safe()
2019-05-10 08:58:52 -04:00
Petr Dlouhý
e11ba8e427
squash! Python3: fix strformat ascii_safe() and unicode_safe()
...
From:
fixes for Python 3: fix running problems in Python 3
2019-05-10 08:58:52 -04:00
Petr Dlouhý
a1c6c4935e
Python3: fix strformat ascii_safe() and unicode_safe()
2019-05-10 08:58:52 -04:00
Marius Gedminas
ecba4e7ac8
Merge pull request #254 from linkchecker/make-telnet-test-fast
...
Make test_telnet.py fast
2019-04-27 21:58:33 +03:00
Marius Gedminas
947b108f9e
Make test_telnet.py fast
...
Linkchecker's telnet://username:password@host:port URL verification logic is
- connect to host:port
- wait for 'login: ' to appear (with a 10 second timeout), send username
- wait for 'Password: ' to appear (with a 10 second timeout), send password
The test spawns a fake telnet server on localhost that never presented
the login/password prompts, forcing the 10 second timeout three times.
This commit makes the fake telnet server emit the expected prompts,
making the test pass in .2 seconds.
2019-04-27 21:52:33 +03:00
Marius Gedminas
3a7c2a9823
Merge pull request #255 from linkchecker/stop-threads-more-reliably
...
Stop threads more reliably
2019-04-27 21:51:34 +03:00
anarcat
9c9706a07a
Merge pull request #256 from cjmayo/parse_qs
...
Replace deprecated cgi.parse_qs
2019-04-27 13:27:19 -04:00
anarcat
d022ad49ac
Merge pull request #257 from cjmayo/startexp
...
Replace deprecated regexp flags not at start
2019-04-27 13:26:59 -04:00
Chris Mayo
a355476b82
Replace deprecated regexp flags not at start
...
DeprecationWarning: Flags not at the start of the expression
2019-04-26 19:25:59 +01:00
Chris Mayo
5ae40c1ae2
Replace deprecated cgi.parse_qs
2019-04-26 19:23:45 +01:00
Marius Gedminas
068e9bae8d
Stop the telnet server threads more reliably
...
Instead of speaking text-based protocols over TCP we can use
threading.Event() objects to indicate the desire for the server thread
to quit.
2019-04-26 01:10:36 +03:00
Marius Gedminas
8489730eac
Print the names of the hanging tests
...
In cast we forget or somebody else wants to tackle this. After all, the
assertion error + traceback shows up at the end of the test run, and
it's not immediately clear which test is to blame for it!
2019-04-26 00:57:21 +03:00
Marius Gedminas
e285b0f257
Wow this test _is_ actually very slow!
...
tox -e py27 -- tests/checker/test_telnet.py takes 30 seconds to
complete. That seems excessive to me, but one thing at a time.
2019-04-26 00:23:51 +03:00
Marius Gedminas
e9fb9b01bf
Fix a hanging test on Python 3
...
I'm not entirely sure why the test is hanging, but this seems clear
enough:
- the test setup spawns a (non-daemon) background thread that runs
forever, or until it is told to quit by receiving a TCP packet on a
certain port
- the test teardown tries to tell the background thread to quit (which
doesn't work) and waits for that to happen
- as a result the entire test run hangs forever
This commit adds a timeout as an extra safety net so that the test run
will complete even if the clean shutdown procedure fails for some
reason.
2019-04-26 00:15:10 +03:00
anarcat
b65e0f9d4c
Merge pull request #244 from cjmayo/fixes
...
Fix mistakes in changes to test_dummy.py and test_updater.py in 8f4acc31
2019-04-25 16:20:44 -04:00
anarcat
59fe9ed876
Merge pull request #228 from cjmayo/python3_18
...
{python3_18} Python3: fix unicode in urlbase
2019-04-25 16:17:00 -04:00
anarcat
70f0bbf225
Merge pull request #250 from cjmayo/ftpserver
...
Get FtpServerTest working by updating to current pyftpdlib API
2019-04-25 16:16:33 -04:00
anarcat
095c6c57d4
Merge pull request #252 from cjmayo/init
...
Make test_all_parts TestLogger import Python 3 compatible
2019-04-25 15:54:26 -04:00
Chris Mayo
5caa683123
Make test_all_parts TestLogger import Python 3 compatible
...
tests/checker/test_all_parts.py:21: in <module>
import __init__ as init
E ModuleNotFoundError: No module named '__init__'
testWarning: cannot collect test class 'TestLogger' because it has a
__init__ constructor
2019-04-25 20:28:21 +01:00
anarcat
243dedf3bc
Merge pull request #247 from cjmayo/robots37
...
Make TestRobotsTxt Python 3.7 compatible
2019-04-25 15:21:35 -04:00
anarcat
7767bc52fa
Merge pull request #216 from cjmayo/python3_06
...
{python3_06} Python3: fix tests init - exceptions and string
2019-04-25 15:20:55 -04:00
Petr Dlouhý
e92b0a9f7b
Python3: fix unicode in urlbase
2019-04-25 19:57:45 +01:00
Petr Dlouhý
b3881ce3b5
Python3: fix urlbase, strformat and others
2019-04-25 19:57:45 +01:00