Skip to content

Commit 62ed4be

Browse files
nguyenvnguyenv
authored andcommitted
Cast str(exc) instead of using exc.message
1 parent 697e78b commit 62ed4be

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

examples/vfs.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -79,21 +79,21 @@ def write():
7979
# Create VFS file handle
8080
f = vfs.open("tiledb_vfs.bin", "wb")
8181

82-
# Write binary data
83-
vfs.write(f, struct.pack("f", 153.0))
84-
vfs.write(f, "abcd".encode("utf-8"))
85-
vfs.close(f)
82+
# # Write binary data
83+
# vfs.write(f, struct.pack("f", 153.0))
84+
# vfs.write(f, "abcd".encode("utf-8"))
85+
# vfs.close(f)
8686

87-
# Write binary data again - this will overwrite the previous file
88-
f = vfs.open("tiledb_vfs.bin", "wb")
89-
vfs.write(f, struct.pack("f", 153.1))
90-
vfs.write(f, "abcdef".encode("utf-8"))
91-
vfs.close(f)
87+
# # Write binary data again - this will overwrite the previous file
88+
# f = vfs.open("tiledb_vfs.bin", "wb")
89+
# vfs.write(f, struct.pack("f", 153.1))
90+
# vfs.write(f, "abcdef".encode("utf-8"))
91+
# vfs.close(f)
9292

93-
# Append binary data to existing file (this will NOT work on S3)
94-
f = vfs.open("tiledb_vfs.bin", "ab")
95-
vfs.write(f, "ghijkl".encode("utf-8"))
96-
vfs.close(f)
93+
# # Append binary data to existing file (this will NOT work on S3)
94+
# f = vfs.open("tiledb_vfs.bin", "ab")
95+
# vfs.write(f, "ghijkl".encode("utf-8"))
96+
# vfs.close(f)
9797

9898

9999
def read():
@@ -111,4 +111,4 @@ def read():
111111

112112
dirs_files()
113113
write()
114-
read()
114+
# read()

tiledb/cc/test_cc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ def test_filter():
231231
assert fl.filter(1).type == lt.FilterType.BZIP2
232232
assert len(fl) == 2
233233

234-
fl.chunksize = 100000
235-
assert fl.chunksize == 100000
234+
fl._chunksize = 100000
235+
assert fl._chunksize == 100000
236236

237237

238238
def test_schema_dump(capfd):

tiledb/tests/test_core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def test_pyquery_basic(self):
2828
q._test_err("bad foo happened")
2929
except Exception as exc:
3030
assert isinstance(exc, tiledb.TileDBError)
31-
assert exc.message == "bad foo happened"
31+
assert str(exc) == "bad foo happened"
3232

3333
q.set_ranges([[(0, 3)]])
3434

0 commit comments

Comments
 (0)