tests(nano): fix usage of raises with match#1341
Conversation
|
| Branch | tests/nano/raises-match |
| Testbed | ubuntu-22.04 |
Click to view all benchmark results
| Benchmark | Latency | Benchmark Result minutes (m) (Result Δ%) | Lower Boundary minutes (m) (Limit %) | Upper Boundary minutes (m) (Limit %) |
|---|---|---|---|---|
| sync-v2 (up to 20000 blocks) | 📈 view plot 🚷 view threshold | 1.70 m(+3.48%)Baseline: 1.64 m | 1.48 m (86.98%) | 1.80 m (94.07%) |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #1341 +/- ##
==========================================
- Coverage 85.62% 85.60% -0.03%
==========================================
Files 424 424
Lines 32119 32119
Branches 4997 4997
==========================================
- Hits 27502 27495 -7
- Misses 3614 3616 +2
- Partials 1003 1008 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
jansegre
left a comment
There was a problem hiding this comment.
Are these all cases? If they are should we add a custom linter to prevent using self.assertRaises?
73882a3 to
f4922bc
Compare
Those are all cases that were using |
Motivation
The
self.assertRaisesmethod doesn't support thematcharg for checking exception messages, only thepytest.raisesfunction. This PRs fixes all incorrect usages.Acceptance Criteria
self.assertRaiseswithpytest.raisesin files where thematcharg is used.Checklist
master, confirm this code is production-ready and can be included in future releases as soon as it gets merged