diff options
| author | John Ehresman <jpe@wingware.com> | 2010-04-16 11:55:50 -0400 |
|---|---|---|
| committer | David Malcolm <dmalcolm@redhat.com> | 2010-04-16 13:02:42 -0400 |
| commit | cecafa7e4809c8c2bfa77446beea8beb3a51d8dc (patch) | |
| tree | 00d4bb95a55f3e55dc4c0d453f75011852667405 /tests/test_gicon.py | |
| parent | be40a7e479e12e6c5f15603c134c926ac300ba7b (diff) | |
| download | pygobject-cecafa7e4809c8c2bfa77446beea8beb3a51d8dc.tar.gz pygobject-cecafa7e4809c8c2bfa77446beea8beb3a51d8dc.tar.xz pygobject-cecafa7e4809c8c2bfa77446beea8beb3a51d8dc.zip | |
Test fixes for bytes
Diffstat (limited to 'tests/test_gicon.py')
| -rw-r--r-- | tests/test_gicon.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_gicon.py b/tests/test_gicon.py index 5ce7ece..67e33eb 100644 --- a/tests/test_gicon.py +++ b/tests/test_gicon.py @@ -3,7 +3,7 @@ import os import unittest -from common import gio, glib +from common import gio, glib, _bytes class TestIcon(unittest.TestCase): @@ -28,11 +28,11 @@ class TestIcon(unittest.TestCase): class TestLoadableIcon(unittest.TestCase): def setUp(self): - self.file = open('temp.svg', 'w') - self.svg = ('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' - '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" ' - '"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">' - '<svg width="32" height="32"/>') + self.file = open('temp.svg', 'wb') + self.svg = _bytes('<?xml version="1.0" encoding="UTF-8" standalone="no"?>' + '<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN" ' + '"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">' + '<svg width="32" height="32"/>') self.file.write(self.svg) self.file.close() self.icon = gio.FileIcon(gio.File('temp.svg')) |
