mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
try and stop rich.Console().rule() from throwing unicode errors in github ci
This commit is contained in:
parent
b31dc2ac71
commit
6746da5539
1 changed files with 5 additions and 0 deletions
|
@ -14,6 +14,11 @@ from aider.main import main
|
|||
class TestMain(TestCase):
|
||||
def setUp(self):
|
||||
os.environ["OPENAI_API_KEY"] = "deadbeef"
|
||||
|
||||
# Force this so that GitHub Actions windows tests don't barf on rich.Console().rule()
|
||||
# https://github.com/Textualize/rich/issues/2411
|
||||
os.environ["PYTHONIOENCODING"] = "utf-8"
|
||||
|
||||
self.original_cwd = os.getcwd()
|
||||
self.tempdir = tempfile.mkdtemp()
|
||||
os.chdir(self.tempdir)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue