Itamar Turner-Trauring
8881728ca5
Another passing test on Python 3.
2020-12-22 13:17:07 -05:00
Itamar Turner-Trauring
baa2cff29c
Unbreak Python 2.
2020-12-22 13:14:18 -05:00
Itamar Turner-Trauring
013388981c
Fix intermittent failing test on PyPy hopefully.
...
PyPy does not have refcounts, so files were only being closed when GC happened,
which meant their buffered writes never hit disk.
2020-12-22 13:04:53 -05:00
Itamar Turner-Trauring
f9ee4b239f
Merge pull request #934 from tahoe-lafs/3564.eliot-log-testing-python-3
...
Re-enable logging validation on Python 3.
Fixes ticket:3564
2020-12-22 11:43:36 -05:00
Itamar Turner-Trauring
74c08883f5
Another passing test on Python 3.
2020-12-22 11:36:52 -05:00
Itamar Turner-Trauring
cabfdadc20
Merge branch '3564.eliot-log-testing-python-3' into 3566.web-tests-python-3-part-2
2020-12-22 10:48:32 -05:00
Itamar Turner-Trauring
f30376ade6
Make sure test output can encode bytes correctly too.
2020-12-22 10:47:25 -05:00
Jean-Paul Calderone
ab7c382dec
Merge pull request #939 from LeastAuthority/3567.test_storage_client-eaddrinuse
...
Use a pre-bound listening socket in the test
Fixes: ticket:3567
2020-12-21 13:27:08 -05:00
Itamar Turner-Trauring
b46898f667
Merge branch '3564.eliot-log-testing-python-3' into 3566.web-tests-python-3-part-2
2020-12-21 13:20:50 -05:00
Itamar Turner-Trauring
7fc64fdf45
Also handle bytes when serializing production Eliot log messages on Python 3.
2020-12-21 13:20:14 -05:00
Itamar Turner-Trauring
a8732a3c70
Merge branch '3564.eliot-log-testing-python-3' into 3566.web-tests-python-3-part-2
2020-12-21 13:12:19 -05:00
Itamar Turner-Trauring
c25dd57768
Make sure we can handle bytes, plus a couple other fixes.
2020-12-21 13:12:01 -05:00
Itamar Turner-Trauring
2737229895
Another passing test.
2020-12-21 11:12:52 -05:00
Itamar Turner-Trauring
a2f042845d
Another passing test.
2020-12-21 10:58:09 -05:00
Itamar Turner-Trauring
d8197d9554
Another passing test.
2020-12-21 10:52:31 -05:00
Itamar Turner-Trauring
15c7af8e72
Another passing test.
2020-12-21 10:29:59 -05:00
Itamar Turner-Trauring
98c71e51e1
More progress towards passing tests.
2020-12-21 10:04:27 -05:00
Itamar Turner-Trauring
2ec7d52d09
Some progress towards passing tests on Python 3.
2020-12-18 16:12:32 -05:00
Itamar Turner-Trauring
5315d48355
Merge remote-tracking branch 'origin/master' into 3565.web-tests-python-3-part-1
2020-12-18 15:43:36 -05:00
Itamar Turner-Trauring
50a794a911
More accurate docstring.
2020-12-18 11:34:08 -05:00
Itamar Turner-Trauring
865f3fd7d0
Improve the docstring.
2020-12-18 11:33:24 -05:00
Itamar Turner-Trauring
8f4a0379ea
Correct examples.
2020-12-18 11:26:10 -05:00
Itamar Turner-Trauring
b24a9f7083
Trying to get test_grid working on Python 3.
2020-12-18 11:21:04 -05:00
Jason R. Coombs
99da74fffb
Change comment to clarify that it's the implementation that's incomplete.
2020-12-18 09:58:56 -05:00
Jean-Paul Calderone
8e6c52b61e
pre-assign a listening socket to the main tub to avoid the error
2020-12-17 10:20:22 -05:00
Itamar Turner-Trauring
6e12cce1e4
Port to Python 3.
2020-12-17 09:55:35 -05:00
Itamar Turner-Trauring
3ac64e42f7
Web test_status tests pass on Python 3.
2020-12-17 09:54:04 -05:00
Itamar Turner-Trauring
9b59e7e245
Merge remote-tracking branch 'origin/3552.test_system-python-3' into 3565.web-tests-python-3-part-1
2020-12-17 09:51:52 -05:00
Itamar Turner-Trauring
33392502d3
server IDs/node IDS should be bytes.
2020-12-17 09:50:39 -05:00
Itamar Turner-Trauring
26297c296d
Merge branch 'master' into 3552.test_system-python-3
2020-12-17 09:42:34 -05:00
Jean-Paul Calderone
0ffbc7870e
Okay, let KeyboardInterrupt through
2020-12-16 20:32:04 -05:00
Jean-Paul Calderone
895ba55cf7
Python 3 compatibility
2020-12-16 18:17:14 -05:00
Jean-Paul Calderone
a223f6bb60
More reliably corrupt the signature
2020-12-16 17:31:06 -05:00
Jean-Paul Calderone
98000c2b66
re-implement test_unsigned_announcement without mock
...
and to make assertions about public behavior instead of private implementation
details
2020-12-16 16:20:38 -05:00
Jean-Paul Calderone
60e401ca69
Make ObserverList synchronous, reentrant, and exception safe
...
with tests
2020-12-16 16:19:33 -05:00
Jean-Paul Calderone
83ebaef86c
Stop mocking safe_load
...
The comment implies this will cause something to break on some platform.
Let's find out.
2020-12-16 15:24:33 -05:00
Jean-Paul Calderone
d19b1cfd68
Merge pull request #933 from LeastAuthority/3533.test_root-no-mock
...
Remove Mock from test_root
Fixes: ticket:3533
2020-12-16 15:15:17 -05:00
Itamar Turner-Trauring
b5f2afe39c
WIP porting test_status.py.
2020-12-16 14:13:46 -05:00
Itamar Turner-Trauring
67c0a4ac84
Port another test module to Python 3.
2020-12-16 13:53:49 -05:00
Jean-Paul Calderone
9f28ccb2a4
Move the last three mock-using tests to test_tor_provider
...
where they can be rewritten later
2020-12-16 12:07:54 -05:00
Jean-Paul Calderone
3d82ca0d25
Use boring old dependency injection to replace mocks in this test
2020-12-16 11:50:35 -05:00
Jean-Paul Calderone
3d564f97d5
Switch away from mock in a few more simple cases in test_connections.py
2020-12-16 11:48:33 -05:00
Jean-Paul Calderone
468895c74d
Duplicate of allmydata.test.test_tor_provider.Provider.test_handler_control_endpoint
2020-12-16 11:28:36 -05:00
Jean-Paul Calderone
7eb9f2ce54
Moved into allmydata.test.test_i2p_provider
...
This follows the local convention of using mock even though I'm trying to get
rid of mock. This is because it keeps the test_i2p_provider suite consistent
which means it won't make removing mock from test_i2p_provider later much
harder and lets me avoid doing that work now.
2020-12-16 11:20:45 -05:00
Itamar Turner-Trauring
61c76902ca
Port to Python 3.
2020-12-16 11:16:34 -05:00
Jean-Paul Calderone
8271dbf3e6
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_configdir
2020-12-16 11:15:51 -05:00
Jean-Paul Calderone
81b684b583
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir_executable
2020-12-16 11:15:21 -05:00
Itamar Turner-Trauring
f7362dc1ef
Port to Python 3.
2020-12-16 11:14:55 -05:00
Jean-Paul Calderone
6d66be43b9
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch_configdir
2020-12-16 11:14:46 -05:00
Jean-Paul Calderone
e84860ef15
Duplicate of allmydata.test.test_i2p_provider.Provider.test_handler_launch
2020-12-16 11:13:52 -05:00