Skip to content

Commit

Permalink
fix pypy integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mpnowacki-reef committed Oct 25, 2023
1 parent d0276a1 commit d92c5b3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed
* `--quiet` now will implicitly set `--noProgress` option as well
* pypy integration tests

## [3.11.0] - 2023-10-04

Expand Down
5 changes: 5 additions & 0 deletions test/integration/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,11 @@ def should_succeed(
if expected_pattern is not None:
assert re.search(expected_pattern, stdout), \
f'did not match pattern="{expected_pattern}", stdout="{stdout}"'
if platform.python_implementation().lower() == 'pypy':
# TODO: remove after pypy removes the leftover print and resolve
# https://github.com/Backblaze/B2_Command_Line_Tool/issues/936
while stdout.startswith('/'):
stdout = stdout.split('\n', 1)[-1]

return stdout

Expand Down

0 comments on commit d92c5b3

Please sign in to comment.