@@ -82,7 +82,13 @@ def test_append_with_timezones_dateutil(setup_path):
82
82
),
83
83
index = range (5 ),
84
84
)
85
- with pytest .raises (ValueError ):
85
+
86
+ msg = (
87
+ r"invalid info for \[values_block_1\] for \[tz\], "
88
+ r"existing_value \[dateutil/.*US/Eastern\] "
89
+ r"conflicts with new value \[dateutil/.*EET\]"
90
+ )
91
+ with pytest .raises (ValueError , match = msg ):
86
92
store .append ("df_tz" , df )
87
93
88
94
# this is ok
@@ -100,7 +106,13 @@ def test_append_with_timezones_dateutil(setup_path):
100
106
),
101
107
index = range (5 ),
102
108
)
103
- with pytest .raises (ValueError ):
109
+
110
+ msg = (
111
+ r"invalid info for \[B\] for \[tz\], "
112
+ r"existing_value \[dateutil/.*EET\] "
113
+ r"conflicts with new value \[dateutil/.*CET\]"
114
+ )
115
+ with pytest .raises (ValueError , match = msg ):
104
116
store .append ("df_tz" , df )
105
117
106
118
# as index
@@ -169,7 +181,12 @@ def test_append_with_timezones_pytz(setup_path):
169
181
),
170
182
index = range (5 ),
171
183
)
172
- with pytest .raises (ValueError ):
184
+
185
+ msg = (
186
+ r"invalid info for \[values_block_1\] for \[tz\], "
187
+ r"existing_value \[US/Eastern\] conflicts with new value \[EET\]"
188
+ )
189
+ with pytest .raises (ValueError , match = msg ):
173
190
store .append ("df_tz" , df )
174
191
175
192
# this is ok
@@ -187,7 +204,12 @@ def test_append_with_timezones_pytz(setup_path):
187
204
),
188
205
index = range (5 ),
189
206
)
190
- with pytest .raises (ValueError ):
207
+
208
+ msg = (
209
+ r"invalid info for \[B\] for \[tz\], "
210
+ r"existing_value \[EET\] conflicts with new value \[CET\]"
211
+ )
212
+ with pytest .raises (ValueError , match = msg ):
191
213
store .append ("df_tz" , df )
192
214
193
215
# as index
0 commit comments