Skip to content
Snippets Groups Projects
Select Git revision
  • d78561a27a30148524941de059f4676df3696586
  • master default
  • waldwiesen-simulation
  • weilin
  • textures
  • colab
  • torch_native-rewrite
  • ci-experiments
  • test-travis-test
  • os-travis
  • remove-lbm
  • bootstrap_theme
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.4
  • 0.1.3
  • 0.1.2
  • 0.1.1
  • 0.1.0
24 results

test_native_tensorflow_compilation.py

Blame
  • test_print_unsupported_node.py 513 B
    # -*- coding: utf-8 -*-
    #
    # Copyright © 2019 Stephan Seitz <stephan.seitz@fau.de>
    #
    # Distributed under terms of the GPLv3 license.
    
    """
    
    """
    import pytest
    
    import pystencils
    from pystencils.backends.cbackend import CBackend
    
    
    class UnsupportedNode(pystencils.astnodes.Node):
    
        def __init__(self):
            super().__init__()
    
    
    def test_print_unsupported_node():
        with pytest.raises(NotImplementedError, match='CBackend does not support node of type UnsupportedNode'):
            CBackend()(UnsupportedNode())