Skip to content

Commit

Permalink
Merge pull request #560 from sparklemotion/flavorjones-test-fixup
Browse files Browse the repository at this point in the history
Fixup some tests
  • Loading branch information
flavorjones authored Sep 16, 2024
2 parents 6c274b4 + 3f4c50b commit 8324f27
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_database.rb
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,9 @@ def call action, a, b, c, d

def test_close_with_open_statements
s = @db.prepare("select 'foo'")
@db.close # refute_raises(SQLite3::BusyException)
assert_nothing_raised do # formerly raised SQLite3::BusyException
@db.close
end
ensure
s&.close
end
Expand Down Expand Up @@ -662,7 +664,7 @@ def test_load_extension_error

def test_raw_float_infinity
# https://github.com/sparklemotion/sqlite3-ruby/issues/396
skip if SQLite3::SQLITE_LOADED_VERSION >= "3.43.0"
skip if SQLite3::SQLITE_LOADED_VERSION == "3.43.0"

db = SQLite3::Database.new ":memory:"
db.execute("create table foo (temperature float)")
Expand Down

0 comments on commit 8324f27

Please sign in to comment.