Opened 2 years ago

Closed 2 years ago

#30730 closed defect (fixed)

More random failures in src/sage/interfaces/psage.py

Reported by: vbraun Owned by:
Priority: major Milestone: sage-9.3
Component: interfaces Keywords: random_fail
Cc: gh-mwageringel, dimpase, mkoeppe Merged in:
Authors: Volker Braun Reviewers: Dima Pasechnik
Report Upstream: N/A Work issues:
Branch: 75df605 (Commits, GitHub, GitLab) Commit: 75df605f216ddc7b6ca719be942d666b241520e9
Dependencies: Stopgaps:

GitHub link to the corresponding issue

Description

**********************************************************************
File "src/sage/interfaces/psage.py", line 115, in sage.interfaces.psage.PSage.__del__
Failed example:
    sig_on_count() # check sig_on/off pairings (virtual doctest)
Expected:
    0
Got:
    Exception ignored in: <function ExpectElement.__del__ at 0xd0e9a268>
    Traceback (most recent call last):
      File "/var/lib/buildbot/slave/sage_git/build/local/lib/python3.8/site-packages/sage/interfaces/expect.py", line 1513, in __del__
        P.clear(self._name)
      File "/var/lib/buildbot/slave/sage_git/build/local/lib/python3.8/site-packages/sage/interfaces/sage0.py", line 369, in clear
        self.eval('del %s' % var)
      File "/var/lib/buildbot/slave/sage_git/build/local/lib/python3.8/site-packages/sage/interfaces/psage.py", line 140, in eval
        if self.is_locked():
      File "/var/lib/buildbot/slave/sage_git/build/local/lib/python3.8/site-packages/sage/interfaces/psage.py", line 97, in is_locked
        with open(self.__tmp) as fobj:
    FileNotFoundError: [Errno 2] No such file or directory: '/var/lib/buildbot/slave/sage_git/dot_sage/temp/sagebd1032s02/14708/sage_smpgw9rg_no//lock'
    0
**********************************************************************

Apparently the is_locked() method also raises if the directory is gone

Change History (7)

comment:1 Changed 2 years ago by vbraun

Branch: u/vbraun/more_random_failures_in_src_sage_interfaces_psage_py

comment:2 Changed 2 years ago by vbraun

Cc: dimpase added
Commit: 75df605f216ddc7b6ca719be942d666b241520e9
Status: newneeds_review

New commits:

75df605Fix PSage.is_locked

comment:3 Changed 2 years ago by vbraun

Authors: Volker Braun

comment:4 Changed 2 years ago by dimpase

Cc: mkoeppe added

afk now

comment:5 Changed 2 years ago by dimpase

Reviewers: Dima Pasechnik
Status: needs_reviewpositive_review

lgtm

comment:6 Changed 2 years ago by mkoeppe

Milestone: sage-9.2sage-9.3

comment:7 Changed 2 years ago by vbraun

Branch: u/vbraun/more_random_failures_in_src_sage_interfaces_psage_py75df605f216ddc7b6ca719be942d666b241520e9
Resolution: fixed
Status: positive_reviewclosed
Note: See TracTickets for help on using tickets.