import os
import unittest

class TestCython(unittest.TestCase):
    pass

def add_test(name, runner, target):
    setattr(TestCython, "test_" + name, lambda s: runner(s, target))

try:
    import Cython
    import glob
    import sys
    targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
    sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))

    for target in targets:
        def runner(self, target):
            cwd = os.getcwd()
            try:
                os.chdir(os.path.dirname(target))
                exec(open(os.path.basename(target)).read())
            except:
                raise
            finally:
                os.chdir(cwd)
        name, _ = os.path.splitext(os.path.basename(target))
        add_test(name, runner, target)


except ImportError:
    pass


import os
import unittest

class TestCython(unittest.TestCase):
    pass
# Needs to wait unil cython supports pythran new builtins naming
#def add_test(name, runner, target):
#    setattr(TestCython, "test_" + name, lambda s: runner(s, target))
#
#try:
#    import Cython
#    import glob
#    import sys
#    targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
#    sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))
#
#    for target in targets:
#        def runner(self, target):
#            cwd = os.getcwd()
#            try:
#                os.chdir(os.path.dirname(target))
#                exec(open(os.path.basename(target)).read())
#            except:
#                raise
#            finally:
#                os.chdir(cwd)
#        name, _ = os.path.splitext(os.path.basename(target))
#        add_test(name, runner, target)
#
#
#except ImportError:
#    pass


Disable Cython test until Cython support new pythonic layout
Disable Cython test until Cython support new pythonic layout

  import os
  import unittest
  
  class TestCython(unittest.TestCase):
      pass
- 
+ # Needs to wait unil cython supports pythran new builtins naming
- def add_test(name, runner, target):
+ #def add_test(name, runner, target):
-     setattr(TestCython, "test_" + name, lambda s: runner(s, target))
+ #    setattr(TestCython, "test_" + name, lambda s: runner(s, target))
- 
+ #
- try:
+ #try:
-     import Cython
+ #    import Cython
-     import glob
+ #    import glob
-     import sys
+ #    import sys
-     targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
+ #    targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
-     sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))
+ #    sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))
- 
+ #
-     for target in targets:
+ #    for target in targets:
-         def runner(self, target):
+ #        def runner(self, target):
-             cwd = os.getcwd()
+ #            cwd = os.getcwd()
-             try:
+ #            try:
-                 os.chdir(os.path.dirname(target))
+ #                os.chdir(os.path.dirname(target))
-                 exec(open(os.path.basename(target)).read())
+ #                exec(open(os.path.basename(target)).read())
-             except:
+ #            except:
-                 raise
+ #                raise
-             finally:
+ #            finally:
-                 os.chdir(cwd)
+ #                os.chdir(cwd)
-         name, _ = os.path.splitext(os.path.basename(target))
+ #        name, _ = os.path.splitext(os.path.basename(target))
-         add_test(name, runner, target)
+ #        add_test(name, runner, target)
+ #
+ #
+ #except ImportError:
+ #    pass
  
  
- except ImportError:
-     pass
- 
- 
Disable Cython test until Cython support new pythonic layout
## Code Before:
import os
import unittest

class TestCython(unittest.TestCase):
    pass

def add_test(name, runner, target):
    setattr(TestCython, "test_" + name, lambda s: runner(s, target))

try:
    import Cython
    import glob
    import sys
    targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
    sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))

    for target in targets:
        def runner(self, target):
            cwd = os.getcwd()
            try:
                os.chdir(os.path.dirname(target))
                exec(open(os.path.basename(target)).read())
            except:
                raise
            finally:
                os.chdir(cwd)
        name, _ = os.path.splitext(os.path.basename(target))
        add_test(name, runner, target)


except ImportError:
    pass


## Instruction:
Disable Cython test until Cython support new pythonic layout
## Code After:
import os
import unittest

class TestCython(unittest.TestCase):
    pass
# Needs to wait unil cython supports pythran new builtins naming
#def add_test(name, runner, target):
#    setattr(TestCython, "test_" + name, lambda s: runner(s, target))
#
#try:
#    import Cython
#    import glob
#    import sys
#    targets = glob.glob(os.path.join(os.path.dirname(__file__), "cython", "setup_*.py"))
#    sys.path.append(os.path.join(os.path.dirname(__file__), "cython"))
#
#    for target in targets:
#        def runner(self, target):
#            cwd = os.getcwd()
#            try:
#                os.chdir(os.path.dirname(target))
#                exec(open(os.path.basename(target)).read())
#            except:
#                raise
#            finally:
#                os.chdir(cwd)
#        name, _ = os.path.splitext(os.path.basename(target))
#        add_test(name, runner, target)
#
#
#except ImportError:
#    pass

