-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Update operator from 3.13.5 #5935
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -605,6 +605,10 @@ def test_dunder_is_original(self): | |
|
|
||
| @support.requires_docstrings | ||
| def test_attrgetter_signature(self): | ||
| # TODO: RUSTPYTHON fails only when running inside COperatorTestCase | ||
| if type(self).__name__ == 'COperatorTestCase': | ||
| self.skipTest("TODO: RUSTPYTHON") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This way of handling makes hard to fix it when it is actually fixed. A recommended pattern is adding another test function under COperatorTestCase.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
sure, np |
||
|
|
||
| operator = self.module | ||
| sig = inspect.signature(operator.attrgetter) | ||
| self.assertEqual(str(sig), '(attr, /, *attrs)') | ||
|
|
@@ -613,6 +617,10 @@ def test_attrgetter_signature(self): | |
|
|
||
| @support.requires_docstrings | ||
| def test_itemgetter_signature(self): | ||
| # TODO: RUSTPYTHON fails only when running inside COperatorTestCase | ||
| if type(self).__name__ == 'COperatorTestCase': | ||
| self.skipTest("TODO: RUSTPYTHON") | ||
|
|
||
| operator = self.module | ||
| sig = inspect.signature(operator.itemgetter) | ||
| self.assertEqual(str(sig), '(item, /, *items)') | ||
|
|
@@ -621,6 +629,10 @@ def test_itemgetter_signature(self): | |
|
|
||
| @support.requires_docstrings | ||
| def test_methodcaller_signature(self): | ||
| # TODO: RUSTPYTHON fails only when running inside COperatorTestCase | ||
| if type(self).__name__ == 'COperatorTestCase': | ||
| self.skipTest("TODO: RUSTPYTHON") | ||
|
|
||
| operator = self.module | ||
| sig = inspect.signature(operator.methodcaller) | ||
| self.assertEqual(str(sig), '(name, /, *args, **kwargs)') | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have tried to mark those signature tests with
unittest.expectedFailurebut then the test fails on "UNEXPECTED SUCCESS", very strange.I have tried to mess with defining
__text_signature__but I'm guessing that I'm doing something wrong because it completely ignores it. I would appreciate any suggestion that you have:)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe it is a base class of multiple other tests