Skip to content

Commit

Permalink
different attempted fix for 25
Browse files Browse the repository at this point in the history
  • Loading branch information
hjwp committed Feb 23, 2025
1 parent c3bd3a4 commit 4d364e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/book_tester.py
Original file line number Diff line number Diff line change
Expand Up @@ -878,11 +878,11 @@ def recognise_listing_and_process_it(self):
"docker kill $(docker ps -q)", ignore_errors=True, silent=True
)
fixed = Command(listing.replace(" -it ", " -t "))
if "docker run -t debug-ci" in fixed:
if "docker run --platform=linux/amd64 -t debug-ci" in fixed:
fixed = Command(
fixed.replace(
"docker run -t debug-ci",
"docker run -e PYTHON_COLORS=0 -t debug-ci",
"docker run --platform=linux/amd64 -t debug-ci",
"docker run -e PYTHON_COLORS=0 --platform=linux/amd64 -t debug-ci"
)
)
next_listing = self.listings[self.pos + 1]
Expand Down

0 comments on commit 4d364e9

Please sign in to comment.