2012-08-27 16:54:05 +00:00
|
|
|
diff -up Python-3.3.0rc1/Lib/test/test_email/test_email.py.remove-mimeaudio-tests Python-3.3.0rc1/Lib/test/test_email/test_email.py
|
|
|
|
--- Python-3.3.0rc1/Lib/test/test_email/test_email.py.remove-mimeaudio-tests 2012-08-25 15:22:10.000000000 -0400
|
|
|
|
+++ Python-3.3.0rc1/Lib/test/test_email/test_email.py 2012-08-27 11:00:11.936964586 -0400
|
|
|
|
@@ -1321,47 +1321,6 @@ Blah blah blah
|
|
|
|
self.assertEqual(b.getvalue(), source + b'>From R\xc3\xb6lli\n')
|
2010-01-13 21:25:18 +00:00
|
|
|
|
|
|
|
|
|
|
|
-# Test the basic MIMEAudio class
|
|
|
|
-class TestMIMEAudio(unittest.TestCase):
|
|
|
|
- def setUp(self):
|
2012-07-20 20:34:09 +00:00
|
|
|
- with openfile('audiotest.au', 'rb') as fp:
|
2010-01-13 21:25:18 +00:00
|
|
|
- self._audiodata = fp.read()
|
|
|
|
- self._au = MIMEAudio(self._audiodata)
|
|
|
|
-
|
|
|
|
- def test_guess_minor_type(self):
|
|
|
|
- self.assertEqual(self._au.get_content_type(), 'audio/basic')
|
|
|
|
-
|
|
|
|
- def test_encoding(self):
|
|
|
|
- payload = self._au.get_payload()
|
3.2a1
* Sat Aug 21 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.0.a1
- 3.2a1; add alphatag
- rework %%files in the light of PEP 3147 (__pycache__)
- drop our configuration patch to Setup.dist (patch 0): setup.py should do a
better job of things, and the %%files explicitly lists our modules (r82746
appears to break the old way of doing things). This leads to various modules
changing from "foomodule.so" to "foo.so". It also leads to the optimized build
dropping the _sha1, _sha256 and _sha512 modules, but these are provided by
_hashlib; _weakref becomes a builtin module; xxsubtype goes away (it's only for
testing/devel purposes)
- fixup patches 3, 4, 6, 8, 102, 103, 105, 111 for the rebase
- remove upstream patches: 7 (system expat), 106, 107, 108 (audioop reformat
plus CVE-2010-1634 and CVE-2010-2089), 109 (CVE-2008-5983)
- add machinery for rebuilding "configure" and friends, using the correct
version of autoconf (patch 300)
- patch the debug build's usage of COUNT_ALLOCS to be less verbose (patch 125)
- "modulator" was removed upstream
- drop "-b" from patch applications affecting .py files to avoid littering the
installation tree
2010-08-21 22:08:26 +00:00
|
|
|
- self.assertEqual(base64.decodebytes(bytes(payload, 'ascii')),
|
|
|
|
- self._audiodata)
|
2010-01-13 21:25:18 +00:00
|
|
|
-
|
|
|
|
- def test_checkSetMinor(self):
|
|
|
|
- au = MIMEAudio(self._audiodata, 'fish')
|
|
|
|
- self.assertEqual(au.get_content_type(), 'audio/fish')
|
|
|
|
-
|
|
|
|
- def test_add_header(self):
|
|
|
|
- eq = self.assertEqual
|
|
|
|
- unless = self.assertTrue
|
|
|
|
- self._au.add_header('Content-Disposition', 'attachment',
|
|
|
|
- filename='audiotest.au')
|
|
|
|
- eq(self._au['content-disposition'],
|
|
|
|
- 'attachment; filename="audiotest.au"')
|
|
|
|
- eq(self._au.get_params(header='content-disposition'),
|
|
|
|
- [('attachment', ''), ('filename', 'audiotest.au')])
|
|
|
|
- eq(self._au.get_param('filename', header='content-disposition'),
|
|
|
|
- 'audiotest.au')
|
|
|
|
- missing = []
|
|
|
|
- eq(self._au.get_param('attachment', header='content-disposition'), '')
|
|
|
|
- unless(self._au.get_param('foo', failobj=missing,
|
|
|
|
- header='content-disposition') is missing)
|
|
|
|
- # Try some missing stuff
|
|
|
|
- unless(self._au.get_param('foobar', missing) is missing)
|
|
|
|
- unless(self._au.get_param('attachment', missing,
|
|
|
|
- header='foobar') is missing)
|
|
|
|
-
|
|
|
|
-
|
* Tue Dec 28 2010 David Malcolm <dmalcolm@redhat.com> - 3.2-0.5.b2
- 3.2b2
- rework patch 3 (removal of mimeaudio tests), patch 6 (no static libs),
patch 8 (systemtap), patch 102 (lib64)
- remove patch 4 (rendered redundant by upstream r85537), patch 103 (PEP 3149),
patch 110 (upstreamed expat fix), patch 111 (parallel build fix for grammar
fixed upstream)
- regenerate patch 300 (autotool intermediates)
- workaround COUNT_ALLOCS weakref issues in test suite (patch 126, patch 127,
patch 128)
- stop using runtest.sh in %%check (dropped by upstream), replacing with
regrtest; fixup list of failing tests
- introduce "pyshortver", "SOABI_optimized" and "SOABI_debug" macros
- rework manifests of shared libraries to use "SOABI_" macros, reflecting
PEP 3149
- drop itertools, operator and _collections modules from the manifests as py3k
commit r84058 moved these inside libpython; json/tests moved to test/json_tests
- move turtle code into the tkinter subpackage
2010-12-29 18:26:29 +00:00
|
|
|
-
|
2010-01-13 21:25:18 +00:00
|
|
|
# Test the basic MIMEImage class
|
|
|
|
class TestMIMEImage(unittest.TestCase):
|
|
|
|
def setUp(self):
|