[pypy-commit] pypy py3k: adapt to py3
pjenvey
noreply at buildbot.pypy.org
Tue Apr 9 20:11:46 CEST 2013
Author: Philip Jenvey <pjenvey at underboss.org>
Branch: py3k
Changeset: r63171:9c84a04b7efd
Date: 2013-04-09 11:11 -0700
http://bitbucket.org/pypy/pypy/changeset/9c84a04b7efd/
Log: adapt to py3
diff --git a/pypy/module/pyexpat/test/test_parser.py b/pypy/module/pyexpat/test/test_parser.py
--- a/pypy/module/pyexpat/test/test_parser.py
+++ b/pypy/module/pyexpat/test/test_parser.py
@@ -183,8 +183,8 @@
assert fake_reader.read_count == 4
class AppTestPyexpat2:
- spaceconfig = dict(usemodules=['pyexpat', 'itertools', '_socket',
- 'rctime', 'struct', 'binascii'])
+ spaceconfig = dict(usemodules=['_ffi', '_rawffi', 'pyexpat', 'itertools',
+ '_socket', 'rctime', 'struct', 'binascii'])
def test_django_bug(self):
xml_str = '<?xml version="1.0" standalone="no"?><!DOCTYPE example SYSTEM "http://example.com/example.dtd"><root/>'
@@ -192,7 +192,7 @@
from xml.dom import pulldom
from xml.sax import handler
from xml.sax.expatreader import ExpatParser as _ExpatParser
- from StringIO import StringIO
+ from io import StringIO
class DefusedExpatParser(_ExpatParser):
def start_doctype_decl(self, name, sysid, pubid, has_internal_subset):
More information about the pypy-commit
mailing list