thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

test_io fails #37

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
 $ ./runTests.py tests/test_io.py --debug
<<< tests/test_io.py
sfe: warning: other missing: ['fileName_mesh', 'field_[0-9]+|fields',
'ebc_[0-9]+|ebcs', 'fe', 'equations', 'region_[0-9]+|regions',
'variable_[0-9]+|variables', 'material_[0-9]+|materials',
'integral_[0-9]+|integrals', 'solver_[0-9]+|solvers', 'functions',
'modules', 'epbc_[0-9]+|epbcs', 'lcbc_[0-9]+|lcbcs', 'nbc_[0-9]+|nbcs',
'options']
sfe: warning: left over: ['nm', 'sp', 'TestCommon', 'op']
>>> test instance prepared (2 test(s))
... {'A': 0, 'B': {'C': [0, 1], 'D': {'E': {'F': {'G': 2.0}}}}}
... saving into output-tests/dict.h5...
>>> <type 'exceptions.NameError'>
Traceback (most recent call last):
  File "./runTests.py", line 222, in <module>
    main()
  File "./runTests.py", line 210, in main
    stats = runTest( testFileName, options )
  File "./runTests.py", line 111, in runTest
    ok, nFail, nTotal = test.run( options.debug )
  File "/home/ondra/sfepy/sfe/base/testing.py", line 38, in run
    ret = testMethod()
  File "tests/test_io.py", line 55, in test_recursiveDictHDF5
    writeDictHDF5( fileName, test )
  File "/home/ondra/sfepy/sfe/base/ioutils.py", line 330, in writeDictHDF5
    fd = pt.openFile( fileName, mode = "w",
NameError: global name 'pt' is not defined

if the problem is in not installing some module, it should say so, instead
of rising the NameError exception.

Original issue reported on code.google.com by ondrej.c...@gmail.com on 11 Jun 2008 at 3:18

GoogleCodeExporter commented 9 years ago
tests/test_io.py
+++   test_recursiveDictHDF5: ok
+++   test_sparseMatrixHDF5: ok

Do you have pytables? I will update the test to be skipped if it is missing.

Original comment by robert.c...@gmail.com on 12 Jun 2008 at 12:00

GoogleCodeExporter commented 9 years ago
I think I didn't have them installed.

Original comment by ondrej.c...@gmail.com on 12 Jun 2008 at 12:06

GoogleCodeExporter commented 9 years ago
And now you do not need to...

Original comment by robert.c...@gmail.com on 12 Jun 2008 at 1:47

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/41

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:24