##// END OF EJS Templates
Merge pull request #1199 from tomspur/my_reduce_external...
Min RK -
r5822:7ac48f7c merge
parent child Browse files
Show More
@@ -64,7 +64,6 b' from IPython.core.prefilter import PrefilterManager, ESC_MAGIC'
64 from IPython.core.profiledir import ProfileDir
64 from IPython.core.profiledir import ProfileDir
65 from IPython.core.pylabtools import pylab_activate
65 from IPython.core.pylabtools import pylab_activate
66 from IPython.core.prompts import PromptManager
66 from IPython.core.prompts import PromptManager
67 from IPython.external.Itpl import ItplNS
68 from IPython.utils import PyColorize
67 from IPython.utils import PyColorize
69 from IPython.utils import io
68 from IPython.utils import io
70 from IPython.utils import py3compat
69 from IPython.utils import py3compat
@@ -5,10 +5,10 b' import os'
5 import tempfile
5 import tempfile
6
6
7 from IPython.core.application import BaseIPythonApplication
7 from IPython.core.application import BaseIPythonApplication
8 from IPython.testing import decorators as testdec
8 from IPython.testing import decorators as dec
9 from IPython.utils import py3compat
9 from IPython.utils import py3compat
10
10
11 @testdec.onlyif_unicode_paths
11 @dec.onlyif_unicode_paths
12 def test_unicode_cwd():
12 def test_unicode_cwd():
13 """Check that IPython starts with non-ascii characters in the path."""
13 """Check that IPython starts with non-ascii characters in the path."""
14 wd = tempfile.mkdtemp(suffix=u"€")
14 wd = tempfile.mkdtemp(suffix=u"€")
@@ -25,7 +25,7 b' def test_unicode_cwd():'
25 finally:
25 finally:
26 os.chdir(old_wd)
26 os.chdir(old_wd)
27
27
28 @testdec.onlyif_unicode_paths
28 @dec.onlyif_unicode_paths
29 def test_unicode_ipdir():
29 def test_unicode_ipdir():
30 """Check that IPython starts with non-ascii characters in the IP dir."""
30 """Check that IPython starts with non-ascii characters in the IP dir."""
31 ipdir = tempfile.mkdtemp(suffix=u"€")
31 ipdir = tempfile.mkdtemp(suffix=u"€")
@@ -19,8 +19,6 b' import nose.tools as nt'
19 from nose import SkipTest
19 from nose import SkipTest
20
20
21 from IPython.core.completerlib import magic_run_completer
21 from IPython.core.completerlib import magic_run_completer
22 from IPython.testing import decorators as dec
23 from IPython.testing import tools as tt
24 from IPython.utils import py3compat
22 from IPython.utils import py3compat
25
23
26
24
@@ -9,7 +9,6 b' import nose.tools as nt'
9
9
10 # our own packages
10 # our own packages
11 from IPython.core import autocall
11 from IPython.core import autocall
12 from IPython.testing import decorators as dec
13 from IPython.testing import tools as tt
12 from IPython.testing import tools as tt
14 from IPython.testing.globalipapp import get_ipython
13 from IPython.testing.globalipapp import get_ipython
15 from IPython.utils import py3compat
14 from IPython.utils import py3compat
@@ -28,7 +28,6 b' from os.path import join'
28 import sys
28 import sys
29 from StringIO import StringIO
29 from StringIO import StringIO
30
30
31 from IPython.testing import decorators as dec
32 from IPython.utils import io
31 from IPython.utils import io
33
32
34 #-----------------------------------------------------------------------------
33 #-----------------------------------------------------------------------------
@@ -13,7 +13,6 b' import tempfile'
13 import nose.tools as nt
13 import nose.tools as nt
14
14
15 # our own packages
15 # our own packages
16 from IPython.testing import decorators as dec
17 from IPython.testing.globalipapp import get_ipython
16 from IPython.testing.globalipapp import get_ipython
18 from IPython.utils import py3compat
17 from IPython.utils import py3compat
19
18
@@ -13,7 +13,6 b' from StringIO import StringIO'
13
13
14 import nose.tools as nt
14 import nose.tools as nt
15
15
16 from IPython.testing import decorators as dec
17 from IPython.testing import tools as tt
16 from IPython.testing import tools as tt
18
17
19 #-----------------------------------------------------------------------------
18 #-----------------------------------------------------------------------------
@@ -22,13 +22,13 b' from twisted.python.failure import Failure'
22 from zope.interface import implements, classProvides
22 from zope.interface import implements, classProvides
23
23
24 # From IPython
24 # From IPython
25 from IPython.external import guid
26
27 from IPython.frontend.frontendbase import (FrontEndBase, IFrontEnd,
25 from IPython.frontend.frontendbase import (FrontEndBase, IFrontEnd,
28 IFrontEndFactory)
26 IFrontEndFactory)
29 from IPython.kernel.core.history import FrontEndHistory
27 from IPython.kernel.core.history import FrontEndHistory
30 from IPython.kernel.engineservice import IEngineCore
28 from IPython.kernel.engineservice import IEngineCore
31
29
30 import uuid
31
32 #-----------------------------------------------------------------------------
32 #-----------------------------------------------------------------------------
33 # Classes and functions
33 # Classes and functions
34 #-----------------------------------------------------------------------------
34 #-----------------------------------------------------------------------------
@@ -67,7 +67,7 b' class AsyncFrontEndBase(FrontEndBase):'
67 return Failure(Exception("Block is not compilable"))
67 return Failure(Exception("Block is not compilable"))
68
68
69 if(blockID == None):
69 if(blockID == None):
70 blockID = guid.generate()
70 blockID = uuid.uuid4()
71
71
72 d = self.engine.execute(block)
72 d = self.engine.execute(block)
73 d.addCallback(self._add_history, block=block)
73 d.addCallback(self._add_history, block=block)
@@ -26,7 +26,7 b' __docformat__ = "restructuredtext en"'
26
26
27 import sys
27 import sys
28 import objc
28 import objc
29 from IPython.external import guid
29 import uuid
30
30
31 from Foundation import NSObject, NSMutableArray, NSMutableDictionary,\
31 from Foundation import NSObject, NSMutableArray, NSMutableDictionary,\
32 NSLog, NSNotificationCenter, NSMakeRange,\
32 NSLog, NSNotificationCenter, NSMakeRange,\
@@ -361,7 +361,7 b' class IPythonCocoaController(NSObject, AsyncFrontEndBase):'
361
361
362 def next_block_ID(self):
362 def next_block_ID(self):
363
363
364 return guid.generate()
364 return uuid.uuid4()
365
365
366 def new_cell_block(self):
366 def new_cell_block(self):
367 """A new CellBlock at the end of self.textView.textStorage()"""
367 """A new CellBlock at the end of self.textView.textStorage()"""
@@ -22,7 +22,7 b' __docformat__ = "restructuredtext en"'
22 #-------------------------------------------------------------------------------
22 #-------------------------------------------------------------------------------
23 import string
23 import string
24 import codeop
24 import codeop
25 from IPython.external import guid
25 import uuid
26
26
27
27
28 from IPython.frontend.zopeinterface import (
28 from IPython.frontend.zopeinterface import (
@@ -242,7 +242,7 b' class FrontEndBase(object):'
242 raise Exception("Block is not compilable")
242 raise Exception("Block is not compilable")
243
243
244 if(blockID == None):
244 if(blockID == None):
245 blockID = guid.generate()
245 blockID = uuid.uuid4()
246
246
247 try:
247 try:
248 result = self.shell.execute(block)
248 result = self.shell.execute(block)
@@ -17,7 +17,7 b' from time import sleep'
17 import sys
17 import sys
18
18
19 from IPython.frontend.process import PipedProcess
19 from IPython.frontend.process import PipedProcess
20 from IPython.testing import decorators as testdec
20 from IPython.testing import decorators as dec
21
21
22
22
23 def test_capture_out():
23 def test_capture_out():
@@ -47,7 +47,7 b' def test_io():'
47 assert result == test_string
47 assert result == test_string
48
48
49
49
50 @testdec.skip_win32
50 @dec.skip_win32
51 def test_kill():
51 def test_kill():
52 """ Check that we can kill a process, and its subprocess.
52 """ Check that we can kill a process, and its subprocess.
53 """
53 """
1 NO CONTENT: file was removed
NO CONTENT: file was removed
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now