Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Landy committed Oct 21, 2024
1 parent 05da86e commit cd7c4c0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
os: [ubuntu-latest] #, windows-latest]
# 3.13 not available yet somehow
# 3.7 has issues with multiline expressions
# 3.6- not found for ubuntu-latest
Expand Down
50 changes: 25 additions & 25 deletions tests/dumps/test_core.after_100_.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,31 @@ Traceback with variables (most recent call last):
. return check_
.
.
. def test_replace():
. fmt = Format(
. max_value_str_len=1,
. objects_details=1,
. ellipsis_rel_pos=0.5,
. max_exc_str_len=1,
. ellipsis_='.',
. before=1,
. after=1,
. color_scheme=None,
. skip_files_except=[],
. brief_files_except=[],
. custom_var_printers=[],
. )
. fmt2 = fmt.replace(
. before=2,
. skip_files_except=['f1', 'f2'],
. )
. assert fmt.max_value_str_len == fmt.max_value_str_len
. assert fmt2.before == 2
. assert fmt.before == 1
. assert fmt2.skip_files_except == ['f1', 'f2']
. assert fmt.skip_files_except == []
.
.
. def test_setattr():
. fmt = Format()
. fmt.max_value_str_len = 1
Expand Down Expand Up @@ -64,31 +89,6 @@ Traceback with variables (most recent call last):
. try:
. 1/0
. except:
. tb_reg(core.format_exc(fmt=Format(objects_details=objects_details)))
.
.
. @pytest.mark.parametrize('ellipsis_rel_pos', [-0.5, 0.0, 0.5, 0.7, 1.0, 1.5])
. def test_ellipsis_rel_pos(check, ellipsis_rel_pos):
. check(fmt=Format(ellipsis_rel_pos=ellipsis_rel_pos))
.
.
. def test_max_exc_str_len(check):
. check(fmt=Format(max_exc_str_len=50))
.
.
. @pytest.mark.parametrize('num_skipped_frames', [0, 1, 2])
. def test_num_skipped_frames(check, num_skipped_frames):
. check(num_skipped_frames=num_skipped_frames)
.
.
. @pytest.mark.parametrize('before', [0, 2, 100])
. def test_before(check, before):
. check(fmt=Format(before=before))
.
.
. @pytest.mark.parametrize('after', [0, 2, 100])
. def test_after(check, after):
. check(fmt=Format(after=after))
kwargs = {'fmt': <traceback_with_variables.core.Format object at 0x...omitted for tests only...>}
tb_reg = <bound method Reg.match_tb_text of <tests.test_utils.Reg object at 0x...omitted for tests only...>>
File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f
Expand Down

0 comments on commit cd7c4c0

Please sign in to comment.