Commit 04694275 by rfkelly0

re-disable S3FS tests

parent f6089b53
...@@ -15,7 +15,7 @@ implementations of this interface such as: ...@@ -15,7 +15,7 @@ implementations of this interface such as:
""" """
__version__ = "0.4.0a9" __version__ = "0.4.0a10"
__author__ = "Will McGugan (will@willmcgugan.com)" __author__ = "Will McGugan (will@willmcgugan.com)"
# 'base' imports * from 'path' and 'errors', so their # 'base' imports * from 'path' and 'errors', so their
......
...@@ -39,6 +39,9 @@ from fs.local_functools import wraps ...@@ -39,6 +39,9 @@ from fs.local_functools import wraps
from fs.filelike import StringIO, SpooledTemporaryFile, FileWrapper from fs.filelike import StringIO, SpooledTemporaryFile, FileWrapper
from fs import SEEK_SET, SEEK_CUR, SEEK_END from fs import SEEK_SET, SEEK_CUR, SEEK_END
import logging
logger = logging.getLogger("fs.remote")
_SENTINAL = object() _SENTINAL = object()
...@@ -592,7 +595,9 @@ class CacheFSMixin(WrapFS): ...@@ -592,7 +595,9 @@ class CacheFSMixin(WrapFS):
if not ci.has_full_info: if not ci.has_full_info:
raise KeyError raise KeyError
info = ci.info info = ci.info
logger.debug("GOT INFO FROM CACHE: %r",path)
except KeyError: except KeyError:
logger.debug("INFO WASN'T IN CACHE: %r",path)
info = super(CacheFSMixin,self).getinfo(path) info = super(CacheFSMixin,self).getinfo(path)
self.__set_cached_info(path,CachedInfo(info)) self.__set_cached_info(path,CachedInfo(info))
return info return info
......
...@@ -17,7 +17,7 @@ from fs import s3fs ...@@ -17,7 +17,7 @@ from fs import s3fs
class TestS3FS(unittest.TestCase,FSTestCases,ThreadingTestCases): class TestS3FS(unittest.TestCase,FSTestCases,ThreadingTestCases):
# Disable the tests by default # Disable the tests by default
#__test__ = False __test__ = False
bucket = "test-s3fs.rfk.id.au" bucket = "test-s3fs.rfk.id.au"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment