Commit 4cda388a authored by Tres Seaver's avatar Tres Seaver

Merge pull request #17 from zopefoundation/fix-pypy3

fix test___setstate___interns_dict_keys failure on pypy3
parents 9d1f8e77 1794782a
...@@ -5,7 +5,9 @@ python: ...@@ -5,7 +5,9 @@ python:
- 2.7 - 2.7
- 3.2 - 3.2
- 3.3 - 3.3
- 3.4
- pypy - pypy
- pypy3
install: install:
- pip install . --use-mirrors - pip install . --use-mirrors
script: script:
......
...@@ -14,6 +14,12 @@ ...@@ -14,6 +14,12 @@
import os import os
import unittest import unittest
import platform
import sys
py_impl = getattr(platform, 'python_implementation', lambda: None)
_is_pypy3 = py_impl() == 'PyPy' and sys.version_info[0] > 2
class _Persistent_Base(object): class _Persistent_Base(object):
def _makeOne(self, *args, **kw): def _makeOne(self, *args, **kw):
...@@ -863,6 +869,7 @@ class _Persistent_Base(object): ...@@ -863,6 +869,7 @@ class _Persistent_Base(object):
self.assertEqual(inst.baz, 'bam') self.assertEqual(inst.baz, 'bam')
self.assertEqual(inst.qux, 'spam') self.assertEqual(inst.qux, 'spam')
if not _is_pypy3:
def test___setstate___interns_dict_keys(self): def test___setstate___interns_dict_keys(self):
class Derived(self._getTargetClass()): class Derived(self._getTargetClass()):
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment