formatting error (extra whitespace) in usage string #2273

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

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()) ```
zooko added the
unknown
normal
defect
1.10.0
labels 2014-08-08 22:35:18 +00:00
zooko added this to the undecided milestone 2014-08-08 22:35:18 +00:00
daira commented 2014-08-15 23:34:44 +00:00
Owner

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

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

Well, I can't reproduce it.

Well, I can't reproduce it.
zooko 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 Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

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