How can I import unnecessary_math?

fl rxjwg98 at gmail.com
Thu Jul 24 19:33:58 CEST 2014


Hi,
I want to write some test code. Some on-line tutorials have such codes:


from unnecessary_math import multiply

When it runs, it has errors:

>>> from unnecessary_math import multiply
Traceback (most recent call last):
  File "<interactive input>", line 1, in <module>
ImportError: No module named unnecessary_math

I have not found anywhere to download it. What explanation about the module:

from unnecessary_math import multiply



Thanks,





............................................
from nose import with_setup # optional

from unnecessary_math import multiply

def setup_module(module):
    print ("") # this is to get a newline after the dots
    print ("setup_module before anything in this file")

def teardown_module(module):
    print ("teardown_module after everything in this file")

def my_setup_function():
    print ("my_setup_function")

def my_teardown_function():
    print ("my_teardown_function")



More information about the Python-list mailing list