Jean-Paul Calderone
932481ad47
A helper for doing something repeatedly for a while
2021-01-20 12:58:03 -05:00
Jean-Paul Calderone
61d5f920bb
Add tests for the tag construction code and make it a bit safer
...
Check for sane inputs, reject insane ones
2021-01-19 14:28:16 -05:00
Itamar Turner-Trauring
2de76cd82d
Merge branch 'master' into 3589.more-web-tests-python-3
2021-01-19 11:44:27 -05:00
Jason R. Coombs
7d468cde19
Merge branch 'master' into 3399.mypy
2021-01-15 11:17:47 -05:00
Itamar Turner-Trauring
60acad32ca
Merge remote-tracking branch 'origin/master' into 3589.more-web-tests-python-3
2021-01-14 09:39:18 -05:00
Jean-Paul Calderone
522f96b150
may as well leave(/restore) this
2021-01-12 14:56:37 -05:00
Jean-Paul Calderone
e3a805caa7
unicode_to_argv == id on win32
2021-01-12 14:44:00 -05:00
Itamar Turner-Trauring
5d77282784
Ported to Python 3.
2021-01-12 14:40:33 -05:00
Itamar Turner-Trauring
03fb936716
Port to Python 3.
2021-01-12 14:25:16 -05:00
Jean-Paul Calderone
99f00818a8
diff shrink
2021-01-12 14:21:32 -05:00
Jean-Paul Calderone
46d3ffb2e2
diff shrink
2021-01-12 14:20:50 -05:00
Itamar Turner-Trauring
8c41f60fdb
Port to Python 3.
2021-01-12 14:17:38 -05:00
Itamar Turner-Trauring
7e5e329138
Port to Python 3.
2021-01-12 11:44:27 -05:00
Itamar Turner-Trauring
116c59142d
Port to Python 3.
2021-01-12 11:26:43 -05:00
Itamar Turner-Trauring
f717250ecd
Merge remote-tracking branch 'origin/master' into 3576.port-unknown
2021-01-12 11:07:15 -05:00
Jean-Paul Calderone
82d24bfaf7
one more
2021-01-12 10:46:04 -05:00
Jean-Paul Calderone
ae1a0c591b
Prefer to fix unicode_to_argv/argv_to_unicode instead of callers
2021-01-12 09:58:34 -05:00
Jean-Paul Calderone
7c0d2e3cd5
another un-re-shuffling
2021-01-12 09:29:24 -05:00
Jean-Paul Calderone
a9a60857b2
attempt to reduce diff noise
2021-01-12 09:28:50 -05:00
Jean-Paul Calderone
2889922a08
reign in scope - don't mess with filesystem encoding here
...
It is a separate can of works from argv
2021-01-12 09:27:23 -05:00
Jean-Paul Calderone
15c46924ce
unused import
2021-01-12 09:27:20 -05:00
Jean-Paul Calderone
1810f4e99b
Force the encoding to utf-8 more often
2021-01-11 19:31:41 -05:00
Jean-Paul Calderone
2306819db1
Get rid of unicode_to_argv and argv_to_unicode
2021-01-11 15:45:39 -05:00
Itamar Turner-Trauring
1b1d87f9f9
Merge branch '3584.integration-tests-sftp' into 3579.ftp-python-3
2021-01-11 14:05:07 -05:00
Jean-Paul Calderone
1ae0311e36
Merge pull request #949 from tahoe-lafs/port-webish
...
Port webish/test_webish to Python 3
Fixes: ticket:3577
2021-01-08 13:51:00 -05:00
Itamar Turner-Trauring
7b091bde9b
Port to Python 3.
2021-01-06 10:51:05 -05:00
Itamar Turner-Trauring
192063acfa
Port to Python 3.
2021-01-06 09:59:33 -05:00
Itamar Turner-Trauring
3a6f3f2809
Merge remote-tracking branch 'origin/master' into 3579.ftp-python-3
2021-01-05 16:05:56 -05:00
Chad Whitacre
fa15c2c8d6
Declare victory on blacklist
2021-01-05 06:45:32 -05:00
Chad Whitacre
88946900b3
Port unknown to Python 3
...
This is covered by test_dirnode/test_grid
2021-01-05 06:39:29 -05:00
Chad Whitacre
dc5ac4a112
Merge pull request #946 from tahoe-lafs/3574.port-stats
...
Port stats to Python 3
2021-01-05 06:04:10 -05:00
Itamar Turner-Trauring
4683760ed8
Merge pull request #945 from tahoe-lafs/3566.web-tests-python-3-part-2
...
Port web tests to Python 3, part 2
Fixes ticket:3566
2021-01-04 15:40:52 -05:00
Jean-Paul Calderone
7a504dd99f
Merge pull request #936 from LeastAuthority/3534.test_introducer-no-mock
...
Remove mock from test_introducer
Fixes: ticket:3534
2021-01-04 15:06:29 -05:00
Itamar Turner-Trauring
a54aeae338
Port to Python 3.
2021-01-04 11:05:59 -05:00
Chad Whitacre
c13821ecac
Tack on deep_stats
2021-01-04 06:18:14 -05:00
Chad Whitacre
655be5e3a0
Port stats to Python 3
2021-01-04 06:18:14 -05:00
Jean-Paul Calderone
855521fea8
Merge pull request #935 from LeastAuthority/3529.test_connections-no-mock
...
Remove mock usage from test_connections.py
Fixes: ticket:3529
2021-01-02 12:48:12 -05:00
Chad Whitacre
2a8fa4da7a
Fix test module reference in util._python3
2020-12-29 12:54:19 -05:00
Chad Whitacre
b4b4a1aabf
Port webish/test_webish to Python 3
2020-12-29 12:39:00 -05:00
Jason R. Coombs
574613a892
Merge branch 'master' into 3399.mypy
2020-12-26 12:45:09 -05:00
Itamar Turner-Trauring
55698cc8f2
Merge remote-tracking branch 'origin/master' into 3566.web-tests-python-3-part-2
2020-12-22 13:21:49 -05:00
Itamar Turner-Trauring
1c7956bc1a
Port to Python 3.
2020-12-22 13:19:59 -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
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
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
721b02b262
Use the function I specifically wrote for this!
2020-12-18 11:29:56 -05:00
Itamar Turner-Trauring
6e12cce1e4
Port to Python 3.
2020-12-17 09:55:35 -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
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
60e401ca69
Make ObserverList synchronous, reentrant, and exception safe
...
with tests
2020-12-16 16:19:33 -05:00
Itamar Turner-Trauring
67c0a4ac84
Port another test module to Python 3.
2020-12-16 13:53:49 -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
Itamar Turner-Trauring
61c76902ca
Port to Python 3.
2020-12-16 11:16:34 -05:00
Itamar Turner-Trauring
f7362dc1ef
Port to Python 3.
2020-12-16 11:14:55 -05:00
Itamar Turner-Trauring
54a11dbb6a
Merge pull request #932 from tahoe-lafs/3560.test_eliotutil-python-3
...
Port eliotutil and tests to Python 3
Fixes ticket:3560
2020-12-16 09:40:19 -05:00
Itamar Turner-Trauring
4a587836a5
Port eliotutil and tests to Python 3.
2020-12-15 10:13:46 -05:00
Jean-Paul Calderone
fcbe56ba0a
docstrings for the Tor and I2P address family implementations
2020-12-14 17:36:35 -05:00
Jean-Paul Calderone
035cd8b4ac
Merge remote-tracking branch 'origin/master' into 3532.test_node-no-mock
2020-12-14 15:35:42 -05:00
Jean-Paul Calderone
7638064818
Merge remote-tracking branch 'origin/master' into 3532.test_node-no-mock
2020-12-14 09:32:33 -05:00
Itamar Turner-Trauring
98330d7186
Merge remote-tracking branch 'origin/master' into 3552.test_system-python-3
2020-12-11 13:24:04 -05:00
Itamar Turner-Trauring
66cd68d325
Merge remote-tracking branch 'origin/master' into 3553.nodemaker-python-3
2020-12-11 10:48:50 -05:00
Itamar Turner-Trauring
b1f478c5df
Note test_system.py is only partially ported.
2020-12-11 10:48:34 -05:00
Jean-Paul Calderone
0cdf66a991
Make the Tor/I2P "provider" interfaces explicit
2020-12-11 10:35:22 -05:00
Itamar Turner-Trauring
a2e2ee596b
Some progress(?) towards passing tests.
2020-12-10 11:47:02 -05:00
Itamar Turner-Trauring
fb621f4388
Port idlib to Python 3, making its behavior consistent across Python 2 and 3.
2020-12-10 10:11:43 -05:00
Itamar Turner-Trauring
e9b0a526bd
Merge branch 'master' into 3551.more-immutable-python-3
2020-12-10 10:06:53 -05:00
Jean-Paul Calderone
4ac95a1ede
Merge remote-tracking branch 'origin/master' into 3522.test_alias-no-mock
2020-12-10 07:19:43 -05:00
Itamar Turner-Trauring
96fd1861d2
Port to Python 3.
2020-12-09 14:58:54 -05:00
Itamar Turner-Trauring
bb06067c33
Port to Python 3.
2020-12-09 14:48:33 -05:00
Itamar Turner-Trauring
5cba8a4380
Port to Python 3.
2020-12-09 14:45:07 -05:00
Itamar Turner-Trauring
63ff67a7be
Ported to Python 3.
2020-12-09 13:33:01 -05:00
Itamar Turner-Trauring
baed5fd734
Port to Python 3.
2020-12-09 13:22:51 -05:00
Jean-Paul Calderone
f4432d3f23
Respect the provided encoding
...
UTF-8 is great but if we're claiming the encoding is something else everywhere
else we can't just make it UTF-8 here.
2020-12-07 09:12:38 -05:00
Jean-Paul Calderone
b464fa6483
docstring
2020-12-06 18:28:11 -05:00
Jean-Paul Calderone
77bebb9916
[wip] remove mock from test_alias, along with a bunch of encoding-related changes :/
2020-12-06 17:00:34 -05:00
Itamar Turner-Trauring
22dcd726e6
Port to Python 3.
2020-12-04 11:36:17 -05:00
Itamar Turner-Trauring
15735e70bc
Port to Python 3.
2020-12-04 11:35:59 -05:00
Itamar Turner-Trauring
71d287c1c1
Merge pull request #905 from tahoe-lafs/3514.test-introducer-python-3
...
Port test_introducer.py to Python 3
Fixes ticket:3514
2020-12-02 15:24:17 -05:00
Itamar Turner-Trauring
27102c0d89
Merge remote-tracking branch 'origin/master' into 3514.test-introducer-python-3
2020-11-30 16:47:21 -05:00
Jason R. Coombs
25cce8b77e
Suppress typing errors in fileutil, crawler, fixups.
2020-11-29 13:57:46 -05:00
Jason R. Coombs
f2ffa78198
Define type of PollMixin._poll_should_ignore_these_errors
2020-11-29 13:57:46 -05:00
Jean-Paul Calderone
c82501e0dc
Merge remote-tracking branch 'origin/master' into 3511.config-set-config
2020-11-26 11:01:18 -05:00
Jean-Paul Calderone
c694e8c7e2
Delete allmydata.version_checks and related functionality
...
It is not Tahoe-LAFS' job to manage package installation in this way.
Instead, we can declare our dependencies in setup.py and rely on installation
management tools and packagers to create a suitable execution environment.
Making this statement in the past required going much further out on a limb
than it does today. This code has served its purpose and can now be retired.
2020-11-23 15:10:18 -05:00
Itamar Turner-Trauring
661bc967d2
Port to Python 3.
2020-11-20 14:06:16 -05:00
Itamar Turner-Trauring
38275cbe6f
Merge remote-tracking branch 'origin/master' into 3502.mutable-python-3-part-2
2020-11-19 13:43:10 -05:00
Jean-Paul Calderone
594f8019d1
Better support Windows here
2020-11-18 18:29:36 -05:00
Jean-Paul Calderone
53aa434d77
Add a helper to make a deep copy of a ConfigParser
...
This will help avoid unintentional side-effects
2020-11-18 13:01:08 -05:00
Jean-Paul Calderone
34714d5f6b
Add everything and nothing config validation helpers
2020-11-18 12:42:31 -05:00
Jean-Paul Calderone
e60c643b5f
Make configutil.write_config atomic and also make it take a FilePath
2020-11-18 10:57:38 -05:00
Itamar Turner-Trauring
feb85f4c4a
Always use native strings as keys.
2020-11-17 13:15:57 -05:00
Itamar Turner-Trauring
f60c703dfd
Ported to Python 3.
2020-11-12 11:24:37 -05:00
Itamar Turner-Trauring
99f54223ab
Ported to Python 3.
2020-11-12 11:17:17 -05:00
Itamar Turner-Trauring
679319baf4
Ported to Python 3.
2020-11-12 11:02:51 -05:00
Itamar Turner-Trauring
180c6d7536
Port to Python 3.
2020-11-12 11:00:54 -05:00
Itamar Turner-Trauring
9e2a79ee23
Ported to Python 3.
2020-11-11 14:45:20 -05:00
Itamar Turner-Trauring
d0d7a82734
Port to Python 3.
2020-11-11 14:25:58 -05:00
Itamar Turner-Trauring
d238242d73
Port to Python 3.
2020-11-11 14:09:49 -05:00
Itamar Turner-Trauring
b4803fbc3b
Port to Python 3.
2020-11-11 14:05:22 -05:00
Itamar Turner-Trauring
fcc491bf3b
Port to Python 3.
2020-11-09 15:08:56 -05:00
Itamar Turner-Trauring
d8c1b2fba7
Port to Python 3.
2020-11-09 15:02:33 -05:00
Itamar Turner-Trauring
d31667d58c
Ported to Python 3.
2020-11-09 14:15:40 -05:00
Itamar Turner-Trauring
da6dfcd86d
Ported to Python 3.
2020-11-09 14:00:11 -05:00
Itamar Turner-Trauring
b2e72ef562
Port to Python 3.
2020-11-09 13:55:28 -05:00
Itamar Turner-Trauring
3d5d46fe7c
Port to Python 3.
2020-11-09 13:48:22 -05:00
Itamar Turner-Trauring
9dd0faf528
Ported to Python 3.
2020-11-06 11:41:34 -05:00
Itamar Turner-Trauring
2e6f8ca10b
Ported to Python 3.
2020-11-06 11:32:14 -05:00
Itamar Turner-Trauring
55623d0175
Ported to Python 3.
2020-11-06 11:27:59 -05:00
Itamar Turner-Trauring
dfdaac7474
Ported to Python 3.
2020-11-06 11:25:48 -05:00
Itamar Turner-Trauring
6017b11910
Merge branch '3475.mutable-tests-part-2-python-3' into 3496.mutable-tests-python-3-part-3
2020-11-06 11:20:54 -05:00
Itamar Turner-Trauring
eab228f22a
Merge pull request #887 from tahoe-lafs/3465.storage_client-python-3-take-2
...
Port storage_client to Python 3
Fixes ticket:3465
2020-11-06 11:18:31 -05:00
Itamar Turner-Trauring
84a33625bd
Port to Python 3.
2020-11-06 10:21:33 -05:00
Itamar Turner-Trauring
836d41a92d
Ported to Python 3.
2020-11-06 10:12:56 -05:00
Itamar Turner-Trauring
e4734468e5
Ported to Python 3.
2020-11-06 10:11:09 -05:00
Itamar Turner-Trauring
2c8a91fb6e
Merge pull request #883 from tahoe-lafs/3493.node-to-python-3
...
Port allmydata.node to python 3
Fixes ticket:3493
2020-11-04 13:44:21 -05:00
Itamar Turner-Trauring
0a6321cc9a
Tests and additional check for typed key dicts.
2020-11-04 13:36:08 -05:00
Itamar Turner-Trauring
dc818757b6
Port to Python 3.
2020-11-04 13:22:34 -05:00
Itamar Turner-Trauring
d407cb5005
Port to Python 3.
2020-11-04 13:19:16 -05:00
Itamar Turner-Trauring
f34597ac61
All tests pass on Python 3.
2020-11-04 13:09:55 -05:00
Itamar Turner-Trauring
45a2fcc3f2
Fix for Python 2.
2020-10-30 14:49:25 -04:00
Itamar Turner-Trauring
468beb05f6
Port to Python 3.
2020-10-29 14:09:18 -04:00
Chad Whitacre
d04b6c103a
Pick off a couple of easy ports
2020-10-28 14:57:10 -04:00
Itamar Turner-Trauring
6f2027e824
Fix lint.
2020-10-27 16:59:43 -04:00
Itamar Turner-Trauring
bcb6822171
Merge branch '3485.backported-configparser-for-py-2' into 3479.test-node-python-3
2020-10-27 14:06:35 -04:00
Itamar Turner-Trauring
b62bd13bee
Merge remote-tracking branch 'origin/master' into 3479.test-node-python-3
2020-10-27 14:02:27 -04:00
Itamar Turner-Trauring
b79504a43b
Refactor to unify different code paths.
2020-10-27 13:59:45 -04:00
Itamar Turner-Trauring
0d270e1290
Create ConfigParsers in a consistent manner.
2020-10-27 11:48:25 -04:00
Itamar Turner-Trauring
207111fb9c
Documentation fixes.
2020-10-27 11:43:27 -04:00
Itamar Turner-Trauring
1a7bb06587
SafeConfigParser has been replaced by ConfigParser.
2020-10-27 09:35:09 -04:00
Itamar Turner-Trauring
c76afc9ece
Try to fix some failing unit tests in ASCII locale.
2020-10-27 08:54:28 -04:00
Itamar Turner-Trauring
d5333ae9f9
Merge remote-tracking branch 'origin/master' into 3485.backported-configparser-for-py-2
2020-10-26 16:53:19 -04:00
Itamar Turner-Trauring
4dc1adc817
Some progress towards passing Python 2 tests.
2020-10-26 16:37:00 -04:00
Itamar Turner-Trauring
375ed5096c
Config parsing now always returns Unicode.
2020-10-26 12:12:49 -04:00
Itamar Turner-Trauring
f50fd8e474
Switch to new configparser backport.
2020-10-26 12:12:46 -04:00
Jean-Paul Calderone
25ee76104a
Merge pull request #872 from tahoe-lafs/3486.netifaces
...
Switch to netifaces
Fixes: ticket:3486
2020-10-26 11:55:31 -04:00
Chad Whitacre
f0657aec69
Merge pull request #853 from tahoe-lafs/3346.port-immutable-offloaded
...
Port immutable.offloaded to Python 3
2020-10-23 12:05:20 -04:00
Jean-Paul Calderone
c60d62d858
Direct test for the new implementation
2020-10-23 09:32:13 -04:00
Jean-Paul Calderone
931bdef2a2
Get rid of the old implementation and related unused code
...
Also put in the new implementation, though now it needs tests because *there
were no direct tests for the old one*.
2020-10-23 09:23:16 -04:00
Itamar Turner-Trauring
6aa96bbb8d
Port test_node.py to Python 3.
2020-10-16 11:23:38 -04:00
Itamar Turner-Trauring
f7a89f76e7
All tests pass on Python 3.
2020-10-16 11:20:10 -04:00
Itamar Turner-Trauring
51d472e221
More progress towards passing tests on Python 3.
2020-10-16 11:13:11 -04:00
Itamar Turner-Trauring
c2fe5a65a6
Merge pull request #847 from tahoe-lafs/3459.test-checker-python-3
...
Port test_checker.py to Python 3
Fixes ticket:3459
2020-10-16 10:31:25 -04:00
Jean-Paul Calderone
99fe617069
Merge pull request #857 from tahoe-lafs/3470.oneshotobserverlist-immediately
...
Make OneShotObserverList immediate
Fixes: ticket:3470
2020-10-15 17:37:31 -04:00
Itamar Turner-Trauring
b658a66e7f
Merge remote-tracking branch 'origin/master' into 3459.test-checker-python-3
2020-10-15 08:32:53 -04:00
Itamar Turner-Trauring
fecbbb6733
Port to Python 3.
2020-10-14 16:05:02 -04:00
Itamar Turner-Trauring
b5e54f2ed2
Port to Python 3.
2020-10-14 15:50:02 -04:00
Itamar Turner-Trauring
fa92fde04a
Port to Python 3.
2020-10-14 15:46:37 -04:00
Jean-Paul Calderone
5974f5adf9
Stop using eventually
in OneShotObserverList
2020-10-14 10:56:50 -04:00