Skip to content

Commit a82c8c5

Browse files
committed
fix the tests for the de-duplication
1 parent 04773df commit a82c8c5

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

tests/test_warning_check.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
AssertionError,
6666
re.escape(
6767
"No warnings expected, 1 warnings issued. The list of emitted "
68-
"warnings is: [[UserWarning('the warning message')]]. The filenames "
68+
"warnings is: [UserWarning('the warning message')]. The filenames "
6969
"and line numbers are"
7070
),
7171
],
@@ -85,10 +85,8 @@
8585
AssertionError,
8686
re.escape(
8787
"1 warnings expected, 2 warnings issued. The list of emitted "
88-
"warnings is: [[UserWarning('the warning message'), "
89-
"UserWarning('a different message')], "
90-
"[UserWarning('the warning message'), "
91-
"UserWarning('a different message')]]. The filenames and line "
88+
"warnings is: [UserWarning('the warning message'), "
89+
"UserWarning('a different message')]. The filenames and line "
9290
"numbers are:"
9391
),
9492
],
@@ -100,7 +98,7 @@
10098
AssertionError,
10199
re.escape(
102100
"2 warnings expected, 1 warnings issued. The list of emitted "
103-
"warnings is: [[UserWarning('the warning message')]]. The filenames "
101+
"warnings is: [UserWarning('the warning message')]. The filenames "
104102
"and line numbers are:"
105103
),
106104
],

0 commit comments

Comments
 (0)