merged and prepared for PR

This commit is contained in:
TheAnyKey
2020-05-16 14:20:56 +00:00
parent ebebda3ca6
commit 90e52ab514
3 changed files with 2 additions and 5 deletions

View File

@@ -274,8 +274,6 @@ class TestDecorators(unittest.TestCase):
self.assertEqual(bar(), 42)
self.assertEqual(actions, expected_actions)
# this test was already not working before adding the Py39 decorator extension
@unittest.expectedFailure('TODO RustPython')
def test_wrapped_descriptor_inside_classmethod(self):
class BoundWrapper:
def __init__(self, wrapped):

View File

@@ -390,8 +390,7 @@ class TypesTests(unittest.TestCase):
self.assertEqual(locale.format_string('%g', x, grouping=True), format(x, 'n'))
self.assertEqual(locale.format_string('%.10g', x, grouping=True), format(x, '.10n'))
# DONE but why?
#@unittest.expectedFailure
@unittest.expectedFailure
@run_with_locale('LC_NUMERIC', 'en_US.UTF8')
def test_int__format__locale(self):
# test locale support for __format__ code 'n' for integers

View File

@@ -606,7 +606,7 @@ Path: ast::Expression = {
// Decorators:
Decorator: ast::Expression = {
<Location:@L>"@" <p:Test> "\n" => {
<location:@L>"@" <p:Test> "\n" => {
p
},
};