I guess no one has ran these tests on windows for quite some time. The error seems to come from the autowrap module and has something to do with file operations. If you want to investigate more this would be great, however if you only want to run tests on the quantum module you can do this:
./bin/test quantum ./bin/doctest quantum You can use whatever argument you like (and as many as you like). All tests that contain one of the arguments as a substring in their path will be ran. On 14 November 2012 18:24, Matthew Hoff <[email protected]> wrote: > I am Matthew Hoff and am working with Brian Granger at Cal Poly on quantum > 1d simple harmonic oscillator in Python. I ran the test suite on the code > and an error occurred that I don't understand. I posted the entire test > results below and was wondering if anyone knew how to fix this error? > > Thanks, > Matt > > > > Microsoft Windows [Version 6.0.6001] > Copyright (c) 2006 Microsoft Corporation. All rights reserved. > > C:\Users\Matt>cd Python > > C:\Users\Matt\Python>cd sympy > > C:\Users\Matt\Python\sympy>python .\bin\test > ============================= test process starts > ============================= > executable: C:\Python27\python.exe (2.7.3-final-0) > architecture: 32-bit > cache: yes > ground types: python > random seed: 95337199 > hash randomization: on (PYTHONHASHSEED=1467018093) > > sympy\assumptions\tests\test_assumptions_2.py[5] ..... > [OK] > sympy\assumptions\tests\test_query.py[43] > ....ff..w............................ > ...... > [OK] > sympy\assumptions\tests\test_refine.py[4] .... > [OK] > sympy\categories\tests\test_baseclasses.py[3] ... > [OK] > sympy\categories\tests\test_drawing.py[8] ........ > [OK] > sympy\combinatorics\tests\test_generators.py[1] . > [OK] > sympy\combinatorics\tests\test_graycode.py[1] . > [OK] > sympy\combinatorics\tests\test_group_constructs.py[1] . > [OK] > sympy\combinatorics\tests\test_named_groups.py[5] ..... > [OK] > sympy\combinatorics\tests\test_partitions.py[3] ... > [OK] > sympy\combinatorics\tests\test_perm_groups.py[39] > .....ff...................... > .......... > [OK] > sympy\combinatorics\tests\test_permutations.py[7] ....... > [OK] > sympy\combinatorics\tests\test_polyhedron.py[1] . > [OK] > sympy\combinatorics\tests\test_prufer.py[2] .. > [OK] > sympy\combinatorics\tests\test_subsets.py[1] . > [OK] > sympy\combinatorics\tests\test_testutil.py[5] ..... > [OK] > sympy\combinatorics\tests\test_util.py[8] ........ > [OK] > sympy\concrete\tests\test_gosper.py[11] ........f.. > [OK] > sympy\concrete\tests\test_products.py[7] ....... > [OK] > sympy\concrete\tests\test_sums_products.py[32] > ........ffffff.................. > > [OK] > sympy\core\tests\test_args.py[467] > E..ffffXfffffffffffffff.ssssssssssssssssssss > sssssssssss.................................................................... > ............................................................................... > ............................................................................... > ............................................................................... > ............................................................................... > ............................ > [FAIL] > sympy\core\tests\test_arit.py[63] > .....ff...................................... > .................. > [OK] > sympy\core\tests\test_assumptions.py[35] .....ff............................ > > [OK] > sympy\core\tests\test_basic.py[13] ............. > [OK] > sympy\core\tests\test_cache.py[1] . > [OK] > sympy\core\tests\test_complex.py[16] ................ > [OK] > sympy\core\tests\test_containers.py[10] ........X. > [OK] > sympy\core\tests\test_count_ops.py[2] .. > [OK] > sympy\core\tests\test_diff.py[6] ...... > [OK] > sympy\core\tests\test_equal.py[6] ...... > [OK] > sympy\core\tests\test_eval.py[8] .......f > [OK] > sympy\core\tests\test_eval_power.py[15] ........X...... > [OK] > sympy\core\tests\test_evalf.py[36] .........ff......................... > [OK] > sympy\core\tests\test_expand.py[10] .......... > [OK] > sympy\core\tests\test_expr.py[79] > f............................................ > .................................. > [OK] > sympy\core\tests\test_exprtools.py[8] ........ > [OK] > sympy\core\tests\test_facts.py[10] .......... > [OK] > sympy\core\tests\test_function.py[43] > .........Xff............................. > .. > [OK] > sympy\core\tests\test_logic.py[10] .......... > [OK] > sympy\core\tests\test_match.py[32] .....f.......................... > [OK] > sympy\core\tests\test_noncommutative.py[15] ........ffff... > [OK] > sympy\core\tests\test_numbers.py[57] > ....ff.................................... > ............... > [OK] > sympy\core\tests\test_operations.py[4] .... > [OK] > sympy\core\tests\test_priority.py[5] ..... > [OK] > sympy\core\tests\test_relational.py[11] ......f.... > [OK] > sympy\core\tests\test_rules.py[1] . > [OK] > sympy\core\tests\test_sets.py[27] ........................... > [OK] > sympy\core\tests\test_subs.py[40] .........X.............................. > [OK] > sympy\core\tests\test_symbol.py[10] ......X... > [OK] > sympy\core\tests\test_sympify.py[33] .....f........................... > [OK] > sympy\core\tests\test_trace.py[3] ... > [OK] > sympy\core\tests\test_truediv.py[3] ... > [OK] > sympy\core\tests\test_var.py[5] ..... > [OK] > sympy\diffgeom\tests\test_class_structure.py[3] ... > [OK] > sympy\diffgeom\tests\test_diffgeom.py[11] ........... > [OK] > sympy\diffgeom\tests\test_function_diffgeom_book.py[4] .... > [OK] > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "sympy\utilities\runtests.py", line 473, in _test > return int(not t.test(sort=sort, timeout=timeout, slow=slow)) > File "sympy\utilities\runtests.py", line 837, in test > self.test_file(f, sort, timeout, slow) > File "sympy\utilities\runtests.py", line 856, in test_file > execfile(filename, gl) > File "c:\users\matt\python\sympy\sympy\external\tests\test_autowrap.py", > line > 14, in <module> > autowrap(symbols('x'), 'f95', 'f2py') > File "sympy\utilities\autowrap.py", line 406, in autowrap > return code_wrapper.wrap_code(routine, helpers=helps) > File "sympy\utilities\autowrap.py", line 142, in wrap_code > shutil.rmtree(workdir) > File "C:\Python27\lib\shutil.py", line 250, in rmtree > onerror(os.remove, fullname, sys.exc_info()) > File "C:\Python27\lib\shutil.py", line 248, in rmtree > os.remove(fullname) > > WindowsError: [Error 5] Access is denied: > 'c:\\users\\matt\\appdata\\local\\temp > \\tmpngvtzw_sympy_compile\\wrapper_module_0.pyd' > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To view this discussion on the web visit > https://groups.google.com/d/msg/sympy/-/1LUq7ZbRv3EJ. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/sympy?hl=en. -- You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sympy?hl=en.
