formatting error (extra whitespace) in usage string #2273

Closed
opened 2014-08-08 22:35:18 +00:00 by zooko · 2 comments
zooko commented 2014-08-08 22:35:18 +00:00
Owner

This unit test fails, because the "usage" string in tahoe backup has extra whitespace. I haven't yet checked if other usage strings have the same problem.

--- a/src/allmydata/test/test_cli.py
+++ b/src/allmydata/test/test_cli.py
@@ -611,6 +611,7 @@ class Help(unittest.TestCase):
     def test_backup(self):
         help = str(cli.BackupOptions())
         self.failUnlessIn(" [global-opts] backup [options] FROM ALIAS:TO", help)
+        self.failUnlessIn("sharing as many files", help)

     def test_webopen(self):
         help = str(cli.WebopenOptions())
This unit test fails, because the "usage" string in `tahoe backup` has extra whitespace. I haven't yet checked if other usage strings have the same problem. ``` --- a/src/allmydata/test/test_cli.py +++ b/src/allmydata/test/test_cli.py @@ -611,6 +611,7 @@ class Help(unittest.TestCase): def test_backup(self): help = str(cli.BackupOptions()) self.failUnlessIn(" [global-opts] backup [options] FROM ALIAS:TO", help) + self.failUnlessIn("sharing as many files", help) def test_webopen(self): help = str(cli.WebopenOptions()) ```
tahoe-lafs added the
unknown
normal
defect
1.10.0
labels 2014-08-08 22:35:18 +00:00
tahoe-lafs added this to the undecided milestone 2014-08-08 22:35:18 +00:00
daira commented 2014-08-15 23:34:44 +00:00
Author
Owner

I don't understand. Please clarify what the problem is.

I don't understand. Please clarify what the problem is.
zooko commented 2014-08-16 00:10:32 +00:00
Author
Owner

Well, I can't reproduce it.

Well, I can't reproduce it.
tahoe-lafs added the
cannot reproduce
label 2014-08-16 00:10:32 +00:00
zooko closed this issue 2014-08-16 00:10:32 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tahoe-lafs/trac-2024-07-25#2273
No description provided.