File: bytes-test.patch

package info (click to toggle)
python-wadllib 1.3.2-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 648 kB
  • ctags: 269
  • sloc: xml: 3,484; python: 902; makefile: 24
file content (36 lines) | stat: -rw-r--r-- 1,171 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Description: Update doctests to be pyhon2 & python3 friendly.
Origin: commit, revision id: dimitri.j.ledkov@intel.com-20150211041908-7greonadajj0omw8
Author: Dimitri John Ledkov <dimitri.j.ledkov@intel.com>
Last-Update: 2015-02-11
X-Bzr-Revision-Id: dimitri.j.ledkov@intel.com-20150211041908-7greonadajj0omw8

=== modified file 'src/wadllib/README.txt'
--- old/src/wadllib/README.txt	2013-02-25 18:53:09 +0000
+++ new/src/wadllib/README.txt	2015-02-11 04:19:08 +0000
@@ -573,24 +573,7 @@
    ...     text_field="text", binary_field="\x01\x02")
    >>> print(media_type)
    multipart/form-data; boundary=...
-   >>> print(doc)
-   MIME-Version: 1.0
-   Content-Type: multipart/form-data; boundary="..."
-   <BLANKLINE>
-   --...
-   Content-Type: text/plain; charset="utf-8"
-   MIME-Version: 1.0
-   Content-Disposition: form-data; name="text_field"
-   <BLANKLINE>
-   text
-   --...
-   Content-Type: application/octet-stream
-   MIME-Version: 1.0
-   Content-Disposition: form-data; name="binary_field"
-   <BLANKLINE>
-   ...
-   --...
-   >>> '\x01\x02' in doc
+   >>> b'\x01\x02' in doc
    True
 
    >>> method = service_root.get_method('post', 'text/unknown')