Fix a bytes-vs-str bug.

This commit is contained in:
Itamar Turner-Trauring 2022-08-12 11:28:03 -04:00
parent d0208d0070
commit 636b8a9e2d
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