Example #1
0
def test_import_hook():
    del sys.meta_path[:]
    sys.meta_path.append(CppFinder(import_path=PREFIX))
    try:
        import doubleindoubleout
        a = doubleindoubleout.A()
        assert_equal(a.plus2(2.0), 4.0)
    finally:
        remove_files(["doubleindoubleout.so"])
        del sys.meta_path[:]
Example #2
0
def test_remove_no_files():
    remove_files(["does", "not", "exist"])
def test_remove_no_files():
    remove_files(["does", "not", "exist"])