Commit Graph

7500 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
d3be3ce1e6 Start making tests pass on Python 3. 2021-05-03 11:43:31 -04:00
Itamar Turner-Trauring
1f70d5c13a Port to Python 3. 2021-05-03 11:21:23 -04:00
Itamar Turner-Trauring
f9ae91a94e Tests pass on Python 3. 2021-05-03 11:20:16 -04:00
Itamar Turner-Trauring
a7d4fed1ba Port to Python 3. 2021-05-03 11:15:10 -04:00
Itamar Turner-Trauring
9dcfa2171e Tests pass on Python 3. 2021-05-03 11:13:27 -04:00
Itamar Turner-Trauring
2b751c44db Port to Python 3. 2021-05-03 11:10:54 -04:00
Itamar Turner-Trauring
c275f9ae54 Tests pass on Python 3. 2021-05-03 10:47:30 -04:00
Itamar Turner-Trauring
99543877d6 Fix flake. 2021-05-03 10:27:43 -04:00
Itamar Turner-Trauring
b3ede6b9f2 Nicer way to say the same thing. 2021-05-03 10:25:48 -04:00
Itamar Turner-Trauring
f6b5628ce1 Port to Python 3. 2021-04-30 11:33:51 -04:00
Itamar Turner-Trauring
463f9fe802 Tests pass on Python 3. 2021-04-30 11:31:25 -04:00
Itamar Turner-Trauring
da8e0d61aa Port to Python 3. 2021-04-30 11:15:48 -04:00
Itamar Turner-Trauring
3846df8e4f All test_create_alias tests pass on Python 3. 2021-04-30 11:06:31 -04:00
Itamar Turner-Trauring
46c03f6b75 Remove duplication, and add support for testing cases where stdin/stdout/stderr
have to be bytes.
2021-04-30 11:05:56 -04:00
Itamar Turner-Trauring
2f6535e26e First test passes on Python 3. 2021-04-30 10:33:59 -04:00
Itamar Turner-Trauring
e48d85dd8b Merge branch '3679.more-cli-tests-python-3' into 3687.cli-tests-python-3 2021-04-30 10:22:47 -04:00
Itamar Turner-Trauring
e56a8cc1f3 Merge branch '3678.cli-tests-python-3' into 3679.more-cli-tests-python-3 2021-04-30 10:20:27 -04:00
Itamar Turner-Trauring
72a85ba624 Fix lint. 2021-04-30 10:19:59 -04:00
Itamar Turner-Trauring
9137da5483 Stick to Unicode when possible. 2021-04-30 10:16:41 -04:00
Itamar Turner-Trauring
ef36e0e02a Merge remote-tracking branch 'origin/master' into 3678.cli-tests-python-3 2021-04-28 13:17:37 -04:00
Itamar Turner-Trauring
904b423b48 Merge remote-tracking branch 'origin/master' into 3672.non-utf-8-bytes-in-logs 2021-04-28 13:17:07 -04:00
Itamar Turner-Trauring
2ad8a47455 Fix flake. 2021-04-26 09:59:18 -04:00
Itamar Turner-Trauring
04a09558b6 Port to Python 3. 2021-04-26 09:54:35 -04:00
Itamar Turner-Trauring
eb5211672c Tests pass on Python 3. 2021-04-26 09:46:21 -04:00
Jason R. Coombs
6142168977
Merge pull request #1038 from tahoe-lafs/3652.remove-account.url
3652 Remove STFPd account.url support.
2021-04-23 10:21:53 -04:00
Itamar Turner-Trauring
b85d735b8b Even more progress towards Python 3 tests passing. 2021-04-22 10:43:55 -04:00
Itamar Turner-Trauring
56e4385103 More progress towards Python 3 tests passing. 2021-04-22 10:36:10 -04:00
Itamar Turner-Trauring
5927e14ece Merge branch '3678.cli-tests-python-3' into 3679.more-cli-tests-python-3 2021-04-22 10:28:26 -04:00
Itamar Turner-Trauring
a393b54315 Fix BytesWarning errors. 2021-04-22 10:27:59 -04:00
Itamar Turner-Trauring
b675ca2380 Lint fix. 2021-04-22 10:23:58 -04:00
Itamar Turner-Trauring
2aac69e0df More passing tests on Python 3. 2021-04-22 10:20:26 -04:00
Itamar Turner-Trauring
416813578a Some progress towards passing tests on Python 3. 2021-04-22 10:18:59 -04:00
Itamar Turner-Trauring
86fe350bef Tests pass on Python 2. 2021-04-22 10:15:43 -04:00
Itamar Turner-Trauring
567c0f019e Test random bytes. 2021-04-22 09:39:50 -04:00
Itamar Turner-Trauring
5ebb385c10 Port to Python 3. 2021-04-21 11:58:48 -04:00
Itamar Turner-Trauring
f6e0611b07 All tests pass on Python 3. 2021-04-21 11:42:05 -04:00
Itamar Turner-Trauring
5e59b9d8d6 A little closer to passing tests on Python 3. 2021-04-21 11:32:42 -04:00
Itamar Turner-Trauring
83e16d40a4 Some tests passing on Python 3. 2021-04-21 11:18:36 -04:00
Itamar Turner-Trauring
e090891935 In PyPy encode() doesn't call iterencode(). 2021-04-21 10:39:27 -04:00
Itamar Turner-Trauring
08cb514eee Correct parameter name. 2021-04-21 10:09:26 -04:00
Itamar Turner-Trauring
6e8dde3b14 Simplify. 2021-04-21 10:09:03 -04:00
Jason R. Coombs
1b46f981c6 Remove AccountURLChecker, the code that relies on it, associated tests, and docs. 2021-04-17 17:01:15 -04:00
Itamar Turner-Trauring
abb247b3cc Fix flake. 2021-04-16 12:01:07 -04:00
Itamar Turner-Trauring
fa46efdb3a Enable BytesWarnings in integration tests. 2021-04-16 11:58:37 -04:00
Itamar Turner-Trauring
61506f87bb Make BytesWarning->exception global, to ease use in integration tests. 2021-04-16 11:55:20 -04:00
Itamar Turner-Trauring
bc9e4ac728 Support quoting any-old-bytes correctly on Python 2. 2021-04-16 11:36:53 -04:00
Itamar Turner-Trauring
51ebbae15a Fix typo. 2021-04-16 11:21:47 -04:00
Itamar Turner-Trauring
19a3481e5f
Merge pull request #1042 from tahoe-lafs/3626.streaming-logs-with-bytes
Handle bytes in log messages streamed over websocket

Fixes ticket:3626
2021-04-16 11:21:28 -04:00
Itamar Turner-Trauring
d60bc2841a Oh right, Python 2 Eliot doesn't support custom JSON encoders. 2021-04-14 11:19:04 -04:00
Itamar Turner-Trauring
32607b5ada For logging, using a new JSON bytes encoder that works on any bytes string, not
just UTF-8-encoded strings.
2021-04-14 10:42:01 -04:00
Itamar Turner-Trauring
e242bf50c7 Handle bytes in log messages. 2021-04-14 09:56:27 -04:00
Itamar Turner-Trauring
953c06a18d Fix some plain-str()-of-bytes bugs. 2021-04-13 09:53:08 -04:00
Itamar Turner-Trauring
2299c2dcc8 Fix implicit str(bytesobj). 2021-04-13 09:40:24 -04:00
Itamar Turner-Trauring
4ea1f153cc
Merge pull request #1039 from tahoe-lafs/3674.cli-tests-python-3
Port a bit more cli tests python 3

Fixes ticket:3674
2021-04-13 09:39:13 -04:00
Itamar Turner-Trauring
cbd816fbd5 Ensure warnings get turned into exceptions. Getting sneaking suspicion it's passing in filenames sometimes, not just modules. 2021-04-13 09:34:55 -04:00
Itamar Turner-Trauring
3a832efc15 Merge branch '3674.cli-tests-python-3' into 3675.byteswarning-as-error-again 2021-04-13 09:22:16 -04:00
Itamar Turner-Trauring
b0e6c86085 Better error messages. 2021-04-13 09:21:26 -04:00
Itamar Turner-Trauring
43620a3c19 Port to Python 3. 2021-04-12 12:53:17 -04:00
Itamar Turner-Trauring
c3d2a26ee5 Remove unused imports. 2021-04-12 10:27:00 -04:00
Itamar Turner-Trauring
a0302c50da Fix a BytesWarning. 2021-04-12 10:25:15 -04:00
Itamar Turner-Trauring
2554112045 Handle Python 3 case where stdout by default is Unicode. 2021-04-12 10:17:12 -04:00
Itamar Turner-Trauring
e6532305bf Match Python 3 behavior for stdout/stderr. 2021-04-12 10:17:01 -04:00
Itamar Turner-Trauring
8512bdcd8d Even more progress towards passing Python 3 tests. 2021-04-12 09:51:53 -04:00
Itamar Turner-Trauring
069fcb91eb More progress towards passing Python 3 tests. 2021-04-12 09:35:34 -04:00
Itamar Turner-Trauring
06c4ed13b7 Some progress towards passing Python 3 tests. 2021-04-12 09:28:51 -04:00
Itamar Turner-Trauring
d6406d5edb Some progress towards passing backup tests on Python 3. 2021-04-07 10:44:48 -04:00
Itamar Turner-Trauring
9a17c4a5d2 Port to Python 3. 2021-04-07 09:28:04 -04:00
Itamar Turner-Trauring
803e00f6b1 Tests pass on Python 3. 2021-04-07 09:26:28 -04:00
Itamar Turner-Trauring
6f74bb7d88 Merge remote-tracking branch 'origin/master' into 3671.more-test-utilities-python-3 2021-04-07 09:11:31 -04:00
Itamar Turner-Trauring
01f75db2da
Merge pull request #1034 from tahoe-lafs/3667.test-utilities-python-3
Port more of allmydata.test utility modules to Python 3

Fixes ticket:3667
2021-04-07 09:10:46 -04:00
Itamar Turner-Trauring
ddcca38f31 Port to Python 3. 2021-04-06 10:51:14 -04:00
Itamar Turner-Trauring
315bb672d1 Port to Python 3. 2021-04-06 10:49:00 -04:00
Itamar Turner-Trauring
3429f8bf03 Port to Python 3. 2021-04-06 10:45:58 -04:00
Itamar Turner-Trauring
2257f89d39 More semantically robust test. 2021-04-06 10:45:44 -04:00
Itamar Turner-Trauring
044c79c4db Port to Python 3. 2021-04-06 10:29:29 -04:00
Itamar Turner-Trauring
ae7680759d Another checker script. 2021-04-06 10:22:47 -04:00
Itamar Turner-Trauring
abe3fbc2e5 Empty file. 2021-04-06 10:22:30 -04:00
Itamar Turner-Trauring
7f4a99306b No need to port to Python 3. 2021-04-06 10:04:18 -04:00
Itamar Turner-Trauring
3841662ee6 Fix tests on Python 3. 2021-04-06 09:23:31 -04:00
Itamar Turner-Trauring
7b5cb13417 Flake fix. 2021-04-05 13:02:17 -04:00
Itamar Turner-Trauring
57aa798814 Delete another item that was deleted. 2021-04-05 13:01:23 -04:00
Itamar Turner-Trauring
3bc9b0d544 Port to Python 3. 2021-04-05 13:00:27 -04:00
Itamar Turner-Trauring
74e9bdd476 No point in having separate module. 2021-04-05 12:56:42 -04:00
Itamar Turner-Trauring
a11b47785f Port to Python 3. 2021-04-05 12:52:42 -04:00
Itamar Turner-Trauring
a367d333d9 Port to Python 3. 2021-04-05 12:04:09 -04:00
Itamar Turner-Trauring
625a0abb02 Port to Python 3. 2021-04-05 11:37:32 -04:00
Itamar Turner-Trauring
a37121f89c Already ported. 2021-04-05 11:34:51 -04:00
Itamar Turner-Trauring
84e32882b4 These don't belong in tests module. 2021-04-05 11:30:33 -04:00
Itamar Turner-Trauring
80385aea8e Port to Python 3. 2021-04-05 11:29:13 -04:00
Itamar Turner-Trauring
eedc8f23cf Delete some unused code. 2021-04-05 11:28:59 -04:00
Itamar Turner-Trauring
b981e90de3 Tahoe-LAFS now relies on a sufficiently new version of Twisted, which includes this bugfix. 2021-04-05 11:28:59 -04:00
Itamar Turner-Trauring
d214fe3f16 Delete unused imports. 2021-04-02 13:00:05 -04:00
Itamar Turner-Trauring
9a96fec604 Use existing IRemoteReference implementation. 2021-04-02 12:56:49 -04:00
Itamar Turner-Trauring
c21288b3dd Make it easier to read. 2021-04-02 12:49:58 -04:00
Itamar Turner-Trauring
dd6e0d5467 Switch to decode_furl(). 2021-04-02 12:49:01 -04:00
Itamar Turner-Trauring
939f1f840b Fix reference to new location. 2021-04-02 12:48:50 -04:00
Itamar Turner-Trauring
fd1860705e Port to Python 3. 2021-04-01 10:58:50 -04:00
Itamar Turner-Trauring
003e9c62a8 Delete unused code paths. 2021-04-01 10:58:27 -04:00
Itamar Turner-Trauring
e92b88195c Port to Python 3. 2021-04-01 10:51:13 -04:00
Itamar Turner-Trauring
6127fc8cc7 Tests for rrefutil. 2021-04-01 10:49:59 -04:00
Itamar Turner-Trauring
062740dc23 Probably not worth unit testing a utility function used in one place, move it to
place it's used.
2021-04-01 10:23:37 -04:00
Itamar Turner-Trauring
9f02de688c We don't support old Foolscap versions anymore. 2021-04-01 10:19:16 -04:00
Itamar Turner-Trauring
f606420d78 Make it new-style. 2021-04-01 10:14:05 -04:00
Itamar Turner-Trauring
5ac631047c Port to Python 3. 2021-04-01 10:04:01 -04:00
Itamar Turner-Trauring
de2609151e Special logic for roundtripping Unicode to Unicode is only necessary on Python 2. 2021-04-01 10:02:11 -04:00
Itamar Turner-Trauring
8439f2820b Port to Python 3. 2021-03-31 10:53:02 -04:00
Itamar Turner-Trauring
1ef33d3d69 Note download_to_data() is tested elsewhere. 2021-03-31 10:50:50 -04:00
Itamar Turner-Trauring
d3a8094630 Merge branch '3658.end-progress' into 3657.util-python-3 2021-03-31 10:43:39 -04:00
Itamar Turner-Trauring
0d0dd4dee9 Rip out all references to the unused IProgress API. 2021-03-31 10:35:25 -04:00
Itamar Turner-Trauring
1ead68d061 Start of tests for consumer.py. 2021-03-31 10:10:05 -04:00
Itamar Turner-Trauring
fbcb9bef29 Delete unused code. 2021-03-31 10:09:54 -04:00
Itamar Turner-Trauring
69ece36509
Merge pull request #1018 from tahoe-lafs/3603.scripts-runner-full
3603 Port runner script to Python 3

Fixes ticket:3656
2021-03-31 09:31:31 -04:00
Itamar Turner-Trauring
45e21f8f70 Port to Python 3. 2021-03-30 11:05:49 -04:00
Itamar Turner-Trauring
90c393b8b2 Port __init__.py modules to Python 3 (or just mark them as ported if they're empty). 2021-03-30 10:04:28 -04:00
Itamar Turner-Trauring
43f1f115cb Simplify. 2021-03-30 09:46:56 -04:00
Itamar Turner-Trauring
bc20457a61 Merge remote-tracking branch 'origin/master' into 3603.scripts-runner-full 2021-03-30 09:42:24 -04:00
Sajith Sasidharan
c392a334fc Pacify Python 3
`b"foo"` is `str` in Python 2, `bytes` in Python 3
2021-03-27 11:26:27 -04:00
Jason R. Coombs
a6147b05b1 Fix test failure in test_unicode_arguments_and_output on Python 2. 2021-03-26 11:24:39 -04:00
Jason R. Coombs
110e77b560 Mark module as ported 2021-03-26 09:52:52 -04:00
Jason R. Coombs
bfef77a396 Port runner to Python 3. 2021-03-26 09:52:47 -04:00
Jean-Paul Calderone
7ce7cf7f24
Merge pull request #1016 from LeastAuthority/3650.tahoe-invite-regression
Fix regression in `tahoe invite` w/o shares parameters

Fixes: ticket:3650
2021-03-25 20:09:55 -04:00
Itamar Turner-Trauring
8099929dec
Merge pull request #1013 from tahoe-lafs/3647.more-cli-python-3
Port allmydata.test.cli.test_invite to Python 3

Fixes ticket:3647
2021-03-25 10:19:49 -04:00
Jean-Paul Calderone
00de3b9e7e type cleanups 2021-03-24 13:54:10 -04:00
Jean-Paul Calderone
3963979fbd Test and fix tahoe invite w/o share arguments 2021-03-24 13:23:19 -04:00
Itamar Turner-Trauring
590f71ad10
Merge pull request #1012 from tahoe-lafs/3646.backupdb-python-3
Port test_backupdb to Python 3

Fixes ticket:3646
2021-03-23 16:13:44 -04:00
Jean-Paul Calderone
5b7f0f2477
Merge pull request #1004 from LeastAuthority/3638.mypy-vs-allmydata-scripts
Fix src/allmydata/scripts/ mypy errors

Fixes: ticket:3638
2021-03-23 16:06:33 -04:00
Itamar Turner-Trauring
4b0aa41256 Fix flake. 2021-03-23 11:04:00 -04:00
Itamar Turner-Trauring
15d6ab610d Port to Python 3. 2021-03-23 10:55:14 -04:00
Itamar Turner-Trauring
e140dc06ea Tests pass on Python 3. 2021-03-23 10:53:53 -04:00
Itamar Turner-Trauring
d182ba8283 Utility to dump JSON to bytes. 2021-03-23 10:53:10 -04:00
Itamar Turner-Trauring
4005d90024 Ensure the fake matches the real Wormhole interface. 2021-03-23 10:42:29 -04:00
Itamar Turner-Trauring
8396e9e24d Port to Python 3. 2021-03-23 10:07:24 -04:00
Itamar Turner-Trauring
f0e634af4f Move to correct directory. 2021-03-23 10:03:50 -04:00
Itamar Turner-Trauring
b1b70cc61c Tests pass on Python 3. 2021-03-23 10:02:01 -04:00
Itamar Turner-Trauring
4257f22d77
Merge pull request #1006 from tahoe-lafs/3640.tor-i2p-tests-python-3
Port tor and i2p provider modules to Python 3

Fixes ticket:3640
2021-03-23 09:49:58 -04:00
Itamar Turner-Trauring
28662eef0e
Merge pull request #1005 from tahoe-lafs/3634.cli-tests-python-3
Start porting CLI tests to Python 3

Fixes ticket:3634
2021-03-19 13:59:46 -04:00
Itamar Turner-Trauring
e091d4d0aa Body should be bytes. 2021-03-18 13:29:56 -04:00
Itamar Turner-Trauring
f9d0116283 Fix typo. 2021-03-18 13:29:50 -04:00
Itamar Turner-Trauring
185face21f Port to Python 3. 2021-03-18 11:57:07 -04:00
Itamar Turner-Trauring
e148fef19f Port to Python 3. 2021-03-18 11:55:42 -04:00
Itamar Turner-Trauring
be25d578c5 Port to Python 3. 2021-03-18 11:53:07 -04:00
Itamar Turner-Trauring
3ef69f2738 Port to Python 3. 2021-03-18 11:51:25 -04:00
Itamar Turner-Trauring
334093e28c All tests pass on Python 3. 2021-03-18 11:49:27 -04:00
Itamar Turner-Trauring
045b6085ff Port to Python 3. 2021-03-18 11:30:48 -04:00
Itamar Turner-Trauring
2dfaa3ac2f Ported to Python 3. 2021-03-18 11:08:23 -04:00
Itamar Turner-Trauring
2f25950944 All tests pass on Python 3. 2021-03-18 11:00:49 -04:00
Itamar Turner-Trauring
919930173e More progress towards Python 3. 2021-03-18 10:56:20 -04:00
Itamar Turner-Trauring
b7d6b97f63 Some progress towards passing tests on Python 3. 2021-03-18 10:42:15 -04:00
Itamar Turner-Trauring
34f1f43e95 Revert changes to tahoe_backup/test_backup for now. 2021-03-18 10:33:10 -04:00
Jean-Paul Calderone
0464e9f5ab Merge remote-tracking branch 'origin/master' into 3638.mypy-vs-allmydata-scripts 2021-03-17 21:23:28 -04:00