Commit Graph

834 Commits

Author SHA1 Message Date
Itamar Turner-Trauring
c4dd8dde27 Flake. 2021-05-12 11:51:47 -04:00
Itamar Turner-Trauring
070691caa2 Make sure it always goes to stderr. 2021-05-11 13:18:03 -04:00
Itamar Turner-Trauring
150b0fd3a3 This code should only run on Python 3. 2021-05-10 10:31:12 -04:00
Itamar Turner-Trauring
1ed24a1616 This API is irrelevant in Python 2.5 or later, and not present in newer Python 3. 2021-05-05 11:22:17 -04:00
Itamar Turner-Trauring
90240ae5ef Tests pass on Python 3. 2021-05-04 12:03:12 -04:00
Itamar Turner-Trauring
07b58e3619 All tests pass on Python 3. 2021-05-04 11:34:58 -04:00
Itamar Turner-Trauring
cc176342d4 Some progress towards test_system.py fully running on Python 3. 2021-05-04 11:22:12 -04:00
Itamar Turner-Trauring
4c6d55b260 Port to Python 3. 2021-05-04 10:52:55 -04:00
Itamar Turner-Trauring
a4af4d8e5b Even more passing tests on Python 3. 2021-05-04 10:36:27 -04:00
Itamar Turner-Trauring
deaaa8c727 More tests passing on Python 3. 2021-05-04 10:27:26 -04:00
Itamar Turner-Trauring
7349855ce4 Move unicode conversion higher up. 2021-05-04 10:00:27 -04:00
Itamar Turner-Trauring
d3be3ce1e6 Start making tests pass on Python 3. 2021-05-03 11:43:31 -04:00
Itamar Turner-Trauring
9dcfa2171e Tests pass on Python 3. 2021-05-03 11:13:27 -04:00
Itamar Turner-Trauring
c275f9ae54 Tests pass on Python 3. 2021-05-03 10:47:30 -04:00
Itamar Turner-Trauring
b3ede6b9f2 Nicer way to say the same thing. 2021-05-03 10:25: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
2f6535e26e First test passes on Python 3. 2021-04-30 10:33:59 -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
eb5211672c Tests pass on Python 3. 2021-04-26 09:46:21 -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
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
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
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
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
43f1f115cb Simplify. 2021-03-30 09:46:56 -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
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
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
e140dc06ea Tests pass on Python 3. 2021-03-23 10:53:53 -04:00
Itamar Turner-Trauring
b1b70cc61c Tests pass on Python 3. 2021-03-23 10:02:01 -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
2f25950944 All tests pass on Python 3. 2021-03-18 11:00:49 -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
Itamar Turner-Trauring
56efe7ae48 Merge branch '3603.scripts' into 3634.cli-tests-python-3 2021-03-17 15:33:18 -04:00
Itamar Turner-Trauring
2eba96de61 Address review comments. 2021-03-17 15:29:00 -04:00
Jean-Paul Calderone
b879314194 Make these byte strings explicitly byte strings 2021-03-17 15:21:22 -04:00
Jean-Paul Calderone
84cc7c5b84 Tell mypy about the types of optFlags and optParameters 2021-03-17 15:21:16 -04:00
Jean-Paul Calderone
6955154824 Allow SubCommands to be defined with any Options 2021-03-17 15:17:19 -04:00
Itamar Turner-Trauring
44374487c7 Some progress towards passing tests on Python 3. 2021-03-15 10:37:03 -04:00
Itamar Turner-Trauring
4d80177b18 Merge branch '3603.scripts' into 3634.cli-tests-python-3 2021-03-15 10:36:56 -04:00
Itamar Turner-Trauring
f147669071 Tests pass on Python 3. 2021-03-15 09:44:36 -04:00
Itamar Turner-Trauring
425313457b Make sure we're not doing "%s" % (bytes_). 2021-03-15 09:41:56 -04:00
Jason R. Coombs
0838133006 Merge branch 'master' into 3603.scripts 2021-03-06 10:43:01 -05:00
Itamar Turner-Trauring
70c0607789 Enable BytesWarning across all tests ported to Python 3, fixing problems that caught. 2021-02-24 14:36:15 -05:00
Jason R. Coombs
939988a042 Add workaround for compatibility on Python 2 where test.cli.test_create_alias expects the URL to be a byte string, broken in d02334bfd5. 2021-02-15 15:13:56 -05:00
Jason R. Coombs
d02334bfd5 Rely on futurize to expose the moved modules. 2021-02-15 14:13:59 -05:00
Jason R. Coombs
09f3e3f6b5 Remove comment, superseded by docstring. 2021-02-15 13:26:20 -05:00
Jason R. Coombs
0de90fda3f Merge commit '2fb603e60' into 3603.scripts 2021-02-15 13:10:35 -05:00
Jason R. Coombs
2fb603e603 Rewrite doctest to pass on Python 2+3. 2021-02-15 13:10:21 -05:00
Jason R. Coombs
ebbe645cb6 Use explicit unicode literal for docstring. Now test passes on Python 2 when ALLOW_BYTES is indicated. 2021-02-15 13:06:42 -05:00
Jason R. Coombs
3c93605ead Add docstring to types_. 2021-02-15 12:15:41 -05:00
Itamar Turner-Trauring
06cd015647 Merge remote-tracking branch 'origin/master' into 3606.test_system-web-python3 2021-02-15 11:14:41 -05:00
Jason R. Coombs
df137cca0a Merge branch 'master' into 3603.scripts 2021-02-12 16:08:31 -05:00
Jean-Paul Calderone
f0ac092109 Avoid the pidfile stuff on Windows 2021-02-12 14:49:20 -05:00
Jean-Paul Calderone
4575deb27c Attempt to address non-ascii exceptions from the option parser 2021-02-12 14:32:49 -05:00
Jean-Paul Calderone
91490fc2d5 Merge remote-tracking branch 'origin/master' into 3528.test_cli-no-mock 2021-02-12 13:35:03 -05:00
Jean-Paul Calderone
3beacc9c8f Merge remote-tracking branch 'origin/master' into 3581.unicode_to_argv.1 2021-02-09 21:18:58 -05:00
Itamar Turner-Trauring
6b38c8d1c9 More of test_system now passes on Python 3. 2021-02-03 11:24:47 -05:00
Jason R. Coombs
621ae58abe Avoid overthinking encoding when handling usage errors. 'test_unicode_arguments_and_output' still passes on Python 2. Ref #3603. 2021-01-31 11:13:59 -05:00
Jason R. Coombs
57cb88638a In scripts.create_node, set the encoding once and write text. 2021-01-30 12:46:44 -05:00
Jason R. Coombs
d6082d853a Declare scripts.create_node as ported. 2021-01-30 12:23:16 -05:00
Jason R. Coombs
36b7fdaecf Apply futurize to create_node. 2021-01-30 12:15:36 -05:00
Jason R. Coombs
5fc9674d3a Update escape_path for Python 3 compatibility. 2021-01-30 11:47:53 -05:00
Jason R. Coombs
210eb5b529 Add test for escape_path. 2021-01-30 11:44:36 -05:00
Jason R. Coombs
5bf2b09b81 In scripts.runner, replace hard failure on Python 3 with 'experimental' warning. Ref #3603. Closes #3035. 2021-01-30 11:12:01 -05:00
Jason R. Coombs
00e856fed5 Declare scripts.types_ as ported (never had Python 2 support). 2021-01-30 11:00:19 -05:00
Jason R. Coombs
7d468cde19 Merge branch 'master' into 3399.mypy 2021-01-15 11:17:47 -05:00
Jean-Paul Calderone
622d67c9b9 done with this, thanks 2021-01-12 14:55:40 -05:00
Jean-Paul Calderone
183ee10035 probably more useful debug info 2021-01-12 14:39:56 -05:00
Jean-Paul Calderone
ec92f0362d this? 2021-01-12 14:36:42 -05:00
Jean-Paul Calderone
7ca3c86a35 debug nonsense 2021-01-12 14:35:03 -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
ec6c036f87 less cheesy list collision fix 2021-01-11 16:14:34 -05:00
Jean-Paul Calderone
260706d330 Fix the collision with the builtin list 2021-01-11 16:00:42 -05:00
Jean-Paul Calderone
2306819db1 Get rid of unicode_to_argv and argv_to_unicode 2021-01-11 15:45:39 -05:00
Jean-Paul Calderone
9958236c31 explain the extra coverage stuff 2021-01-04 12:06:03 -05:00
Jean-Paul Calderone
c9b3ccedb4 explain this while loop 2021-01-04 11:59:58 -05:00
Jason R. Coombs
574613a892 Merge branch 'master' into 3399.mypy 2020-12-26 12:45:09 -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