forked from Delgan/loguru
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reformat tests and sources using "black" and "isort"
- Loading branch information
Showing
172 changed files
with
706 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 12 additions & 12 deletions
24
tests/exceptions/output/backtrace/chained_expression_direct.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,48 @@ | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 11, in a_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 12, in a_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 39, in <module> | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 40, in <module> | ||
b_decorator() | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 24, in b_decorator | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 25, in b_decorator | ||
a_decorated() | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 13, in a_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 14, in a_decorated | ||
raise ValueError("NOK") | ||
ValueError: NOK | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 18, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 19, in a_not_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 40, in <module> | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 41, in <module> | ||
b_context_manager() | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 29, in b_context_manager | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 30, in b_context_manager | ||
a_not_decorated() | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 20, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 21, in a_not_decorated | ||
raise ValueError("NOK") | ||
ValueError: NOK | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 18, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 19, in a_not_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 41, in <module> | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 42, in <module> | ||
b_explicit() | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 34, in b_explicit | ||
> File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 35, in b_explicit | ||
a_not_decorated() | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 20, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chained_expression_direct.py", line 21, in a_not_decorated | ||
raise ValueError("NOK") | ||
ValueError: NOK |
20 changes: 10 additions & 10 deletions
20
tests/exceptions/output/backtrace/chained_expression_indirect.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,44 @@ | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 10, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 11, in a | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 20, in <module> | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 21, in <module> | ||
b() | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 17, in b | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 18, in b | ||
a() | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 12, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 13, in a | ||
raise ValueError("NOK") | ||
ValueError: NOK | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 10, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 11, in a | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 23, in <module> | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 24, in <module> | ||
a() | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 12, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 13, in a | ||
raise ValueError("NOK") | ||
ValueError: NOK | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 10, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 11, in a | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
During handling of the above exception, another exception occurred: | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 26, in <module> | ||
> File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 27, in <module> | ||
a() | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 12, in a | ||
File "tests/exceptions/source/backtrace/chained_expression_indirect.py", line 13, in a | ||
raise ValueError("NOK") | ||
ValueError: NOK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 25, in <module> | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 26, in <module> | ||
a_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 10, in a_decorated | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 11, in a_decorated | ||
b() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 18, in b | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 19, in b | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 22, in c | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 23, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 29, in <module> | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 30, in <module> | ||
a_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 14, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 15, in a_not_decorated | ||
b() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 18, in b | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 19, in b | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 22, in c | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 23, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 32, in <module> | ||
> File "tests/exceptions/source/backtrace/chaining_first.py", line 33, in <module> | ||
a_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 14, in a_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 15, in a_not_decorated | ||
b() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 18, in b | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 19, in b | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 22, in c | ||
File "tests/exceptions/source/backtrace/chaining_first.py", line 23, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 37, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 38, in <module> | ||
a_decorator() | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 9, in a_decorator | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 10, in a_decorator | ||
b_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 26, in b_decorated | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 27, in b_decorated | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 34, in c | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 35, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 38, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 39, in <module> | ||
a_context_manager() | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 14, in a_context_manager | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 15, in a_context_manager | ||
b_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 30, in b_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 31, in b_not_decorated | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 34, in c | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 35, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 39, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 40, in <module> | ||
a_explicit() | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 19, in a_explicit | ||
> File "tests/exceptions/source/backtrace/chaining_second.py", line 20, in a_explicit | ||
b_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 30, in b_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 31, in b_not_decorated | ||
c() | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 34, in c | ||
File "tests/exceptions/source/backtrace/chaining_second.py", line 35, in c | ||
1 / 0 | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 45, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 46, in <module> | ||
a_decorator() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 9, in a_decorator | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 10, in a_decorator | ||
b_decorator() | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 21, in b_decorator | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 22, in b_decorator | ||
c_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 38, in c_decorated | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 39, in c_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 46, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 47, in <module> | ||
a_context_manager() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 13, in a_context_manager | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 14, in a_context_manager | ||
b_context_manager() | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 26, in b_context_manager | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 27, in b_context_manager | ||
c_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 42, in c_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 43, in c_not_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 47, in <module> | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 48, in <module> | ||
a_explicit() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 17, in a_explicit | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 18, in a_explicit | ||
b_explicit() | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 31, in b_explicit | ||
> File "tests/exceptions/source/backtrace/chaining_third.py", line 32, in b_explicit | ||
c_not_decorated() | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 42, in c_not_decorated | ||
File "tests/exceptions/source/backtrace/chaining_third.py", line 43, in c_not_decorated | ||
1 / 0 | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/enqueue.py", line 8, in <module> | ||
> File "tests/exceptions/source/backtrace/enqueue.py", line 9, in <module> | ||
1 / 0 | ||
ZeroDivisionError: division by zero |
2 changes: 1 addition & 1 deletion
2
tests/exceptions/output/backtrace/enqueue_with_others_handlers.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/enqueue_with_others_handlers.py", line 25, in <module> | ||
> File "tests/exceptions/source/backtrace/enqueue_with_others_handlers.py", line 26, in <module> | ||
1 / 0 | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
Traceback (most recent call last): | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 23, in <module> | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 24, in <module> | ||
c(k) | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 20, in c | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 21, in c | ||
b(n - 1) | ||
> File "tests/exceptions/source/backtrace/frame_values_backward.py", line 16, in b | ||
> File "tests/exceptions/source/backtrace/frame_values_backward.py", line 17, in b | ||
a(n - 1) | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 12, in a | ||
File "tests/exceptions/source/backtrace/frame_values_backward.py", line 13, in a | ||
1 / n | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/frame_values_forward.py", line 23, in <module> | ||
> File "tests/exceptions/source/backtrace/frame_values_forward.py", line 24, in <module> | ||
c(k) | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 20, in c | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 21, in c | ||
b(n - 1) | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 15, in b | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 16, in b | ||
a(n - 1) | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 11, in a | ||
File "tests/exceptions/source/backtrace/frame_values_forward.py", line 12, in a | ||
1 / n | ||
ZeroDivisionError: division by zero |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,21 @@ | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/function.py", line 21, in <module> | ||
> File "tests/exceptions/source/backtrace/function.py", line 22, in <module> | ||
a() | ||
File "tests/exceptions/source/backtrace/function.py", line 10, in a | ||
File "tests/exceptions/source/backtrace/function.py", line 11, in a | ||
1 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/function.py", line 24, in <module> | ||
> File "tests/exceptions/source/backtrace/function.py", line 25, in <module> | ||
b() | ||
File "tests/exceptions/source/backtrace/function.py", line 14, in b | ||
File "tests/exceptions/source/backtrace/function.py", line 15, in b | ||
2 / 0 | ||
ZeroDivisionError: division by zero | ||
|
||
Traceback (most recent call last): | ||
> File "tests/exceptions/source/backtrace/function.py", line 27, in <module> | ||
> File "tests/exceptions/source/backtrace/function.py", line 28, in <module> | ||
c() | ||
File "tests/exceptions/source/backtrace/function.py", line 18, in c | ||
File "tests/exceptions/source/backtrace/function.py", line 19, in c | ||
3 / 0 | ||
ZeroDivisionError: division by zero |
Oops, something went wrong.