• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

spesmilo / electrum / 5679862715777024
63%

Build:
DEFAULT BRANCH: master
Ran 10 Oct 2023 02:37PM UTC
Jobs 5
Files 79
Run time 5s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

10 Oct 2023 02:33PM UTC coverage: 59.228% (+0.003%) from 59.225%
5679862715777024

push

CirrusCI

SomberNight
storage: make partial writes pos sanity-check more robust

The return value of f.write and f.seek cannot be compared when using open() in text mode:
```
>>> import os
>>> s = "aá"
>>>
>>> with open("a1", "w", encoding='utf-8') as f:
...   a = f.write(s)
...   pos = f.seek(0, os.SEEK_END)
...   print(a, pos)
...
2 3
>>>
>>> with open("a2", "wb") as f:
...   a = f.write(s.encode('utf-8'))
...   pos = f.seek(0, os.SEEK_END)
...   print(a, pos)
...
3 3
```

Was getting errors on Windows, probably due to `\r\n` vs `\n`?
```
20231010T121334.522573Z |    ERROR | util.CallbackManager | cb errored. event='adb_set_up_to_date'. exc=AssertionError((2471475, 2522998))
Traceback (most recent call last):
  File "...\electrum\electrum\wallet.py", line 497, in on_event_adb_set_up_to_date
    self.save_db()
  File "...\electrum\electrum\wallet.py", line 403, in save_db
    self.db.write()
  File "...\electrum\electrum\json_db.py", line 48, in wrapper
    return func(self, *args, **kwargs)
  File "...\electrum\electrum\json_db.py", line 389, in write
    self._append_pending_changes()
  File "...\electrum\electrum\json_db.py", line 48, in wrapper
    return func(self, *args, **kwargs)
  File "...\electrum\electrum\json_db.py", line 400, in _append_pending_changes
    self.storage.append(s)
  File "...\electrum\electrum\storage.py", line 110, in append
    assert pos == self.pos, (self.pos, pos)
AssertionError: (2471475, 2522998)
```

8 of 8 new or added lines in 1 file covered. (100.0%)

18751 of 31659 relevant lines covered (59.23%)

2.96 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
3
82.35
-0.43% electrum/storage.py
Jobs
ID Job ID Ran Files Coverage
1 5679862715777024.1 10 Oct 2023 02:37PM UTC 79
59.1
2 5679862715777024.2 10 Oct 2023 02:37PM UTC 79
59.08
3 5679862715777024.3 10 Oct 2023 02:37PM UTC 79
59.09
4 5679862715777024.4 10 Oct 2023 02:37PM UTC 79
59.12
5 5679862715777024.5 10 Oct 2023 02:46PM UTC 79
59.12
Source Files on build 5679862715777024
  • Tree
  • List 79
  • Changed 4
  • Source Changed 0
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Build #56798627...
  • bfba0dba on github
  • Prev Build on master (#60879588...)
  • Next Build on master (#58886739...)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc