File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
azurefunctions-extensions-bindings-servicebus/tests Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 2
2
# Licensed under the MIT License.
3
3
4
4
import unittest
5
+ import sys
5
6
from typing import List , Optional
6
7
7
8
@@ -144,10 +145,23 @@ def test_input_invalid_datum_type(self):
144
145
"Unexpected type of data received for the 'servicebus' binding: 'str'" ,
145
146
)
146
147
148
+ @unittest .skipIf (sys .version_info .minor >= 13 , "Python 3.13"
149
+ " throws a different error." )
147
150
def test_input_get_decoded_message_ex (self ):
148
151
with self .assertRaises (ValueError ) as e :
149
152
_ = get_decoded_message ("Invalid message" )
150
153
self .assertEqual (
151
154
e .exception .args [0 ],
152
155
"Failed to decode ServiceBus content: must be str, not bytes" ,
153
156
)
157
+
158
+ @unittest .skipIf (sys .version_info .minor < 13 , "Python 3.13"
159
+ " throws a different error." )
160
+ def test_input_get_decoded_message_ex_313 (self ):
161
+ with self .assertRaises (ValueError ) as e :
162
+ _ = get_decoded_message ("Invalid message" )
163
+ self .assertEqual (
164
+ e .exception .args [0 ],
165
+ "Failed to decode ServiceBus content: "
166
+ "find() argument 1 must be str, not bytes" ,
167
+ )
You can’t perform that action at this time.
0 commit comments