mirror of
https://github.com/searxng/searxng.git
synced 2025-12-23 04:00:02 +00:00
Drop Python 2 (1/n): remove unicode string and url_utils
This commit is contained in:
@@ -17,7 +17,7 @@ from unittest2 import TestCase
|
||||
class SearxTestLayer:
|
||||
"""Base layer for non-robot tests."""
|
||||
|
||||
__name__ = u'SearxTestLayer'
|
||||
__name__ = 'SearxTestLayer'
|
||||
|
||||
@classmethod
|
||||
def setUp(cls):
|
||||
@@ -66,7 +66,7 @@ class SearxRobotLayer():
|
||||
stderr=subprocess.STDOUT
|
||||
)
|
||||
if hasattr(self.server.stdout, 'read1'):
|
||||
print(self.server.stdout.read1(1024).decode('utf-8'))
|
||||
print(self.server.stdout.read1(1024).decode())
|
||||
|
||||
def tearDown(self):
|
||||
os.kill(self.server.pid, 9)
|
||||
|
||||
Reference in New Issue
Block a user