You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can run the tests with python 2.6 but not python 2.7. With python 2.7, several tests in _hdfs_tests.py fail:
======================================================================
ERROR: test_with_noclose (_hdfs_test.AtomicHdfsOutputPipeTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/joe/Code/luigi/test/_hdfs_test.py", line 53, in test_with_noclose
self.assertRaises(TestException, foo)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py", line 471, in assertRaises
callableObj(*args, **kwargs)
File "/Users/joe/Code/luigi/test/_hdfs_test.py", line 50, in foo
with hdfs.HdfsAtomicWritePipe(testpath) as fobj:
AttributeError: __enter__
======================================================================
ERROR: test_glob_exists (_hdfs_test.HdfsTargetTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/joe/Code/luigi/test/_hdfs_test.py", line 190, in test_glob_exists
with t1.open('w') as f:
AttributeError: __enter__
That's just a small sample but gives you an idea of the stacktrace. My python fu isn't really that great, so I'm not sure why it works on python 2.6 at all. Is fixing the 2.7 compatibility just a matter of adding enter and close ?
The text was updated successfully, but these errors were encountered:
I can run the tests with python 2.6 but not python 2.7. With python 2.7, several tests in
_hdfs_tests.py
fail:That's just a small sample but gives you an idea of the stacktrace. My python fu isn't really that great, so I'm not sure why it works on python 2.6 at all. Is fixing the 2.7 compatibility just a matter of adding enter and close ?
The text was updated successfully, but these errors were encountered: