@@ -1311,12 +1311,21 @@ end
1311
1311
any (T -> data isa T, binary_not_implemented_types) ||
1312
1312
any (occursin .(binary_not_implemented_pgtypes, test_str))
1313
1313
)
1314
- @test_broken parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1315
- @test_broken isequal (parsed, data)
1316
- @test_broken typeof (parsed) == typeof (data)
1317
- @test_broken parsed_no_oid = func (LibPQ. PQValue (result, 1 , 1 ))
1318
- @test_broken isequal (parsed_no_oid, data)
1319
- @test_broken typeof (parsed_no_oid) == typeof (data)
1314
+ # this allows us to not care whether we error in the func call or in the tests, considering those both successful breaks
1315
+ # an error will pass the outer @test_broken and skip the rest
1316
+ @test_broken let
1317
+ parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1318
+ @test_broken isequal (parsed, data)
1319
+ @test_broken typeof (parsed) == typeof (data)
1320
+ # Julia 1.10+ requires @test_broken receive a boolean
1321
+ false
1322
+ end
1323
+ @test_broken let
1324
+ parsed_no_oid = func (LibPQ. PQValue (result, 1 , 1 ))
1325
+ @test_broken isequal (parsed_no_oid, data)
1326
+ @test_broken typeof (parsed_no_oid) == typeof (data)
1327
+ false
1328
+ end
1320
1329
else
1321
1330
parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1322
1331
@test isequal (parsed, data)
@@ -1389,9 +1398,15 @@ end
1389
1398
any (T -> data isa T, binary_not_implemented_types) ||
1390
1399
any (occursin .(binary_not_implemented_pgtypes, test_str))
1391
1400
)
1392
- @test_broken parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1393
- @test_broken parsed == data
1394
- @test_broken typeof (parsed) == typeof (data)
1401
+ # this allows us to not care whether we error in the func call or in the tests, considering those both successful breaks
1402
+ # an error will pass the outer @test_broken and skip the rest
1403
+ @test_broken let
1404
+ parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1405
+ @test_broken parsed == data
1406
+ @test_broken typeof (parsed) == typeof (data)
1407
+ # Julia 1.10+ requires @test_broken receive a boolean
1408
+ false
1409
+ end
1395
1410
else
1396
1411
parsed = func (LibPQ. PQValue {oid} (result, 1 , 1 ))
1397
1412
@test parsed == data
0 commit comments