@@ -134,7 +134,7 @@ class BulkData(object): | |||||
self.getnode.cache_remove(self, unicodepath) | self.getnode.cache_remove(self, unicodepath) | ||||
# Remove the contents of the target directory | # Remove the contents of the target directory | ||||
if not Table.exists(ospath): # pragma: no cover; should exist here | |||||
if not Table.exists(ospath): | |||||
raise ValueError("nothing at that path") | raise ValueError("nothing at that path") | ||||
for (root, dirs, files) in os.walk(ospath, topdown = False): | for (root, dirs, files) in os.walk(ospath, topdown = False): | ||||
for name in files: | for name in files: | ||||
@@ -352,7 +352,7 @@ class Table(object): | |||||
return ret | return ret | ||||
# Handle single points | # Handle single points | ||||
if key < 0 or key >= self.nrows: # pragma: no cover (shouldn't occur) | |||||
if key < 0 or key >= self.nrows: | |||||
raise IndexError("Index out of range") | raise IndexError("Index out of range") | ||||
(subdir, filename, offset, count) = self._offset_from_row(key) | (subdir, filename, offset, count) = self._offset_from_row(key) | ||||
mm = self.mmap_open(subdir, filename) | mm = self.mmap_open(subdir, filename) | ||||
@@ -4,12 +4,15 @@ nocapture= | |||||
nologcapture= # comment to see cherrypy logs on failure | nologcapture= # comment to see cherrypy logs on failure | ||||
with-coverage= | with-coverage= | ||||
cover-inclusive= | cover-inclusive= | ||||
cover-package=nilmdb | |||||
cover-package=nilmdb #.bulkdata | |||||
cover-erase= | cover-erase= | ||||
##cover-html= # this works, puts html output in cover/ dir | ##cover-html= # this works, puts html output in cover/ dir | ||||
##cover-branches= # need nose 1.1.3 for this | ##cover-branches= # need nose 1.1.3 for this | ||||
#debug=nose | |||||
#debug-log=nose.log | |||||
stop= | stop= | ||||
verbosity=2 | verbosity=2 | ||||
#tests=tests/test_bulkdata.py | |||||
#tests=tests/test_mustclose.py | #tests=tests/test_mustclose.py | ||||
#tests=tests/test_lrucache.py | #tests=tests/test_lrucache.py | ||||
#tests=tests/test_cmdline.py | #tests=tests/test_cmdline.py | ||||
@@ -23,6 +26,7 @@ verbosity=2 | |||||
#tests=tests/test_serializer.py | #tests=tests/test_serializer.py | ||||
#tests=tests/test_iteratorizer.py | #tests=tests/test_iteratorizer.py | ||||
#tests=tests/test_client.py:TestClient.test_client_nilmdb | #tests=tests/test_client.py:TestClient.test_client_nilmdb | ||||
#tests=tests/test_nilmdb.py | |||||
#with-profile= | #with-profile= | ||||
#profile-sort=time | #profile-sort=time | ||||
##profile-restrict=10 # doesn't work right, treated as string or something | ##profile-restrict=10 # doesn't work right, treated as string or something |