Skip to content

Commit 7ca77f0

Browse files
author
Poruri Sai Rahul
committed
Merge branch 'master' of github.com:enthought/codetools into doc/update-changelog
2 parents d4528ea + 8341522 commit 7ca77f0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

codetools/contexts/tests/multi_context_test_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
import unittest
66

77
import nose
8+
from nose.plugins.skip import SkipTest
9+
import six
810

911
# Enthought library imports
1012
from traits.api import Any
@@ -116,6 +118,8 @@ def test_contexts_list_changes(self):
116118
def test_persistence():
117119
""" Checking if the data persists correctly when saving and loading back
118120
"""
121+
if six.PY2:
122+
raise SkipTest("Pickling MultiContext instances is broken on Python 2.")
119123
d1 = DataContext(name = 'test_context1',
120124
subcontext = {'a':1, 'b':2})
121125
d2 = DataContext(name = 'test_context2',

codetools/contexts/with_mask.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def __exit__(self, type, value, tb):
121121
from codetools.contexts.data_context import DataContext
122122
from codetools.contexts.multi_context import MultiContext
123123
from codetools.contexts.adapted_data_context import AdaptedDataContext
124-
from traits.protocols.api import adapt
124+
from traits.adaptation.api import adapt
125125

126126
# Local imports
127127
from .with_mask_adapter import WithMaskAdapter

0 commit comments

Comments
 (0)