diff --git a/.github/workflows/dev-test.yml b/.github/workflows/dev-test.yml index 6eecfbd..3c90d33 100644 --- a/.github/workflows/dev-test.yml +++ b/.github/workflows/dev-test.yml @@ -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 diff --git a/tests/dumps/test_core.after_100_.txt b/tests/dumps/test_core.after_100_.txt index 287472b..b9d8e9f 100644 --- a/tests/dumps/test_core.after_100_.txt +++ b/tests/dumps/test_core.after_100_.txt @@ -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 @@ -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': } tb_reg = > File "...omitted for tests only.../dummies.py", line...omitted for tests only..., in f