test: properly scope file write in a test
This test work with cpython because as we do not assign the open file to
a variable, the reference counting garbage collect it right after the
write
call. Deleting the file object mean the write is flushed.
On an interpreter without reference counting, as pypy, the file object might be garbaged collected too late, breaking the test.
So we give the file object a clear life cycle.
Merge request reports
Activity
Filter activity
Jenkins job DMOD/gitlab-builds #147 succeeded .
See Console Output and Coverage Report for more details.added 3 commits
-
e6c7645f...34113bc0 - 2 commits from branch
swh/devel:master
- 19732c8d - test: properly scope file write in a test
-
e6c7645f...34113bc0 - 2 commits from branch
enabled an automatic merge when the pipeline for 19732c8d succeeds
Jenkins job DMOD/gitlab-builds #149 succeeded .
See Console Output and Coverage Report for more details.mentioned in merge request !356
Please register or sign in to reply