1. Lucas Taylor
  2. Python dBase
  3. Issues
Issue #1 resolved

Tests fail on OSX

Lucas Taylor
repo owner created an issue

2 failures, 1 error when running the test suite on OSX 10.7, w/ Python 2.6.6

Huge pause on test #29...may account for the failures?

Testing dbf version 0.94.005 on darwin with Python 2.6.6 (r266:84374, Aug 31 2010, 11:00:51) 
[GCC 4.0.1 (Apple Inc. build 5493)]

.....................E.................................................F..F............................................................
======================================================================
ERROR: test_codepage (__main__.Test_Dbf_Creation)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dbf_test.py", line 2693, in test_codepage
    bckup = Table(os.path.join(tempdir, newtable.backup))
  File "/Users/ltvolks/Develop/python-dbase/dbf.py", line 3548, in __new__
    possibles = guess_table_type(filename)
  File "/Users/ltvolks/Develop/python-dbase/dbf.py", line 5832, in guess_table_type
    reported = table_type(filename)
  File "/Users/ltvolks/Develop/python-dbase/dbf.py", line 5847, in table_type
    raise DbfError('File %s not found' % filename)
DbfError: File /var/folders/tt/5g86bwvj5dxc0nswdbk972980000gn/T/tmpVJ7b5w/tempvfp2_backup.dbf not found

======================================================================
FAIL: custom data types
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dbf_test.py", line 3041, in test_custom_data_type
    self.assertEqual(record.appt, appt)
AssertionError: DateTime(2012, 10, 26, 16, 0, 7, 903000) != DateTime(2012, 10, 26, 16, 0, 7, 903201)

======================================================================
FAIL: empty and None values
----------------------------------------------------------------------
Traceback (most recent call last):
  File "dbf_test.py", line 2993, in test_empty_is_none
    self.assertEqual(record.appt, appt)
AssertionError: datetime.datetime(2012, 10, 26, 16, 0, 7, 968000) != DateTime(2012, 10, 26, 16, 0, 7, 968635)

----------------------------------------------------------------------
Ran 135 tests in 294.216s

FAILED (failures=2, errors=1)

Comments (4)

  1. Riley Strong

    There's definitely a huge pause on one of the tests, but they do eventually all pass on my Mac at least.

    Testing dbf version 0.95.001 on darwin with Python 2.7.2 (default, Oct 11 2012, 20:14:37) 
    [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)]
    
    .......................................................................................................................................
    ----------------------------------------------------------------------
    Ran 135 tests in 95.414s
    
    OK
    
  2. Log in to comment