summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Treinish <mtreinish@kortar.org>2023-03-10 14:01:48 -0500
committerMatthew Treinish <mtreinish@kortar.org>2023-03-10 14:01:48 -0500
commit54ea8f2c53155b27e08b77a4d7080188c629bb3a (patch)
tree445369460a6b7130c7e98eef016da9703b0d9dac
parentb4bcd3c3d1964352d5f51def08629114057541a8 (diff)
downloadtesttools-54ea8f2c53155b27e08b77a4d7080188c629bb3a.tar.gz
Wrap content-type params in a dictionary
-rw-r--r--testtools/testresult/real.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testtools/testresult/real.py b/testtools/testresult/real.py
index be9122a..d5efad2 100644
--- a/testtools/testresult/real.py
+++ b/testtools/testresult/real.py
@@ -762,7 +762,7 @@ def _make_content_type(mime_type=None):
msg = email.message.EmailMessage()
msg['content-type'] = mime_type
- full_type, parameters = msg.get_content_type(), msg['content-type'].params
+ full_type, parameters = msg.get_content_type(), dict(msg['content-type'].params)
# Ensure any wildcards are valid.
if full_type == '*':
full_type = '*/*'