!hwZqSYihGPuhDdIzIP:matrix.org

cylc general

17 Members
1 Servers

Load older messages


SenderMessageTime
12 Apr 2021
@kinow:matrix.orgBruno P. KinoshitaCouldn't find the explanation for that in their docs, but they have an example like your second one πŸ‘οΈ https://docs.pytest.org/en/stable/assert.html#assertions-about-expected-exceptions19:54:20
@kinow:matrix.orgBruno P. Kinoshita

Probably we could also use the match parameter metronnie ?

with pytest.raises(CylcError, match=r'.* blabla .*'):
    # do something
19:55:17
@revilo666:matrix.orgHilary Oliver
In reply to @metronnie:matrix.org
Horrible thing I just noticed:
That makes sense, because if # do something raises an exception, the assert (and any other code after the exception occurs) will not get executed.
20:44:19
@kinow:matrix.orgBruno P. KinoshitaOh, of course, d'oh πŸ€¦β€β™‚οΈ20:47:46
@kinow:matrix.orgBruno P. KinoshitaAnd I had already had β˜•οΈ, no excuse for that one πŸ˜†20:48:05
@revilo666:matrix.orgHilary Oliver It does look a bit odd though. If the context manager was NOT generating an exception you presumably would put the assert inside the block. 20:50:11
@revilo666:matrix.orgHilary Oliver * It does look a bit odd though. If the context manager was NOT generating an exception you presumably would put the assert inside the block. 20:50:20
@revilo666:matrix.orgHilary Oliver It seems the target (is that the word for it? with blah() as target?) does remain available in the outer scope. 20:51:37
13 Apr 2021
@oliver-sanders2:matrix.orgoliver sandersRedacted or Malformed Event08:15:00
14 Apr 2021
@metronnie:matrix.orgmetronnie
In reply to @revilo666:matrix.org
It seems the target (is that the word for it? with blah() as target?) does remain available in the outer scope.
I think it's called a context manager
15:55:16
@revilo666:matrix.orgHilary Oliver Duh πŸ™„ I was thinking of β€˜blah()’ as the context manager, but no need for a different name for the ... name of the instance 19:06:09
@revilo666:matrix.orgHilary Oliver * Duh πŸ™„ I was thinking of β€˜blah()’ as the context manager, but no need for a different name for the ... name of the instance 19:06:30
19 Apr 2021
@metronnie:matrix.orgmetronnie

In scheduler.py, why are these functions async?

    async def run(self):
        """Run the startup sequence.
        ...
        """
        try:
            await self.install()
            await self.initialise()
            await self.configure()
            await self.start_servers()
            await self.log_start()

It doesn't look like any of them await anything

15:39:03
@metronnie:matrix.orgmetronnie *

In scheduler.py, why are these functions async?

    async def run(self):
        """Run the startup sequence.
        ...
        """
        try:
            await self.install()
            await self.initialise()
            await self.configure()
            await self.start_servers()
            await self.log_start()

It doesn't look like any of them await anything

15:39:18
@oliver-sanders2:matrix.orgoliver sanders This is just a bit of forward thinking so that the unit/integration tests don't all get broken as soon as someone adds an await thing to one of those methods. 15:40:00
@oliver-sanders2:matrix.orgoliver sanders * This is just a bit of forward thinking so that the unit/integration tests don't all get broken as soon as someone adds an await thing to one of those methods. 15:40:10
@metronnie:matrix.orgmetronnieFair enough15:40:22
3 May 2021
Jitsi widget added by @kinow:matrix.orgBruno P. Kinoshita22:03:35
Jitsi widget removed by @kinow:matrix.orgBruno P. Kinoshita22:52:57
5 May 2021
Jitsi widget added by @kinow:matrix.orgBruno P. Kinoshita02:54:44
@revilo666:matrix.orgHilary OliverSci Prog meeting started...03:03:29
@kinow:matrix.orgBruno P. KinoshitaOpsie03:04:06
Jitsi widget removed by @kinow:matrix.orgBruno P. Kinoshita04:13:59
@jarich:matrix.orgjarichSorry I missed the call last night. I haven't been well.23:11:17
6 May 2021
@tpillinger:matrix.orgTim PillingerHope you feel better soon. 07:23:47
Jitsi widget added by @kinow:matrix.orgBruno P. Kinoshita20:58:57
Jitsi widget removed by @kinow:matrix.orgBruno P. Kinoshita22:05:35
7 May 2021
@oliver-sanders2:matrix.orgoliver sandersI've seen a Cylc8 workflow report 0 jobs for tasks in the succeeded and failed states. I think this is supposed to be impossible? If a task is in the N=1 window would we expect it to be loaded into the data store from the database in all cases?15:21:04
@oliver-sanders2:matrix.orgoliver sanders * I've seen a Cylc8 workflow report 0 jobs for tasks in the succeeded and failed states. I think this is supposed to be impossible? If a task is in the N=1 window would we expect it to be loaded into the data store from the database in all cases?15:21:25
8 May 2021
@dwsutherland:matrix.orgDavid SutherlandYeah jobs should get loaded from the DB, they do for restarts but I have a TODO for window reappear06:18:31

There are no newer messages yet.


Back to Room List