Heray-Was-Here
Server : Apache
System : Linux vps43555.mylogin.co 3.10.0-1160.53.1.vz7.185.3 #1 SMP Tue Jan 25 12:49:12 MSK 2022 x86_64
User : redsea ( 60651)
PHP Version : 7.4.32
Disable Function : NONE
Directory :  /usr/lib64/python2.7/site-packages/numpy/distutils/tests/swig_ext/tests/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //usr/lib64/python2.7/site-packages/numpy/distutils/tests/swig_ext/tests/test_example.py
import sys
from numpy.testing import *
from swig_ext import example

class TestExample(TestCase):
    def test_fact(self):
        assert_equal(example.fact(10),3628800)

    def test_cvar(self):
        assert_equal(example.cvar.My_variable,3.0)
        example.cvar.My_variable = 5
        assert_equal(example.cvar.My_variable,5.0)


if __name__ == "__main__":
    run_module_suite()

Hry