Skip to content

Conversation

JukkaL
Copy link
Contributor

@JukkaL JukkaL commented Nov 1, 2019

Fixes mypy false positive "None" has noattribute "__enter__" here:

class Foo(unittest.TestCase):
    def test_foo(self) -> None:
        with self.assertRaisesRegexp(Exception, "foo"):
            1 / 0

Fixes regression introduced in e6c467a.

Fixes mypy false positive `"None" has noattribute "__enter__"` here:

```
class Foo(unittest.TestCase):
    def test_foo(self) -> None:
        with self.assertRaisesRegexp(Exception, "foo"):
            1 / 0
```

Fixes regression introduced in e6c467a.
@JukkaL JukkaL merged commit 86135ed into python:master Nov 1, 2019
@JukkaL JukkaL deleted the fix-unittest branch November 1, 2019 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants