Merge pull request #1209 from tahoe-lafs/3913-bytes-vs-str

Fix a bytes-vs-str bug

Fixes ticket:3913
This commit is contained in:
Itamar Turner-Trauring 2022-08-15 09:50:00 -04:00 committed by GitHub
commit 7dd346a32d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 1 deletions

0
newsfragments/3913.minor Normal file
View File

View File

@ -161,7 +161,7 @@ class BucketCounter(unittest.TestCase, pollmixin.PollMixin):
html = renderSynchronously(w)
s = remove_tags(html)
self.failUnlessIn(b"Total buckets: 0 (the number of", s)
self.failUnless(b"Next crawl in 59 minutes" in s or "Next crawl in 60 minutes" in s, s)
self.failUnless(b"Next crawl in 59 minutes" in s or b"Next crawl in 60 minutes" in s, s)
d.addCallback(_check2)
return d