Skip to content

Commit 90e52ab

Browse files
committed
merged and prepared for PR
1 parent ebebda3 commit 90e52ab

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

Lib/test/test_decorators.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,6 @@ def bar(): return 42
274274
self.assertEqual(bar(), 42)
275275
self.assertEqual(actions, expected_actions)
276276

277-
# this test was already not working before adding the Py39 decorator extension
278-
@unittest.expectedFailure('TODO RustPython')
279277
def test_wrapped_descriptor_inside_classmethod(self):
280278
class BoundWrapper:
281279
def __init__(self, wrapped):

Lib/test/test_types.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,8 +390,7 @@ def test_float__format__locale(self):
390390
self.assertEqual(locale.format_string('%g', x, grouping=True), format(x, 'n'))
391391
self.assertEqual(locale.format_string('%.10g', x, grouping=True), format(x, '.10n'))
392392

393-
# DONE but why?
394-
#@unittest.expectedFailure
393+
@unittest.expectedFailure
395394
@run_with_locale('LC_NUMERIC', 'en_US.UTF8')
396395
def test_int__format__locale(self):
397396
# test locale support for __format__ code 'n' for integers

parser/src/python.lalrpop

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -606,7 +606,7 @@ Path: ast::Expression = {
606606

607607
// Decorators:
608608
Decorator: ast::Expression = {
609-
<Location:@L>"@" <p:Test> "\n" => {
609+
<location:@L>"@" <p:Test> "\n" => {
610610
p
611611
},
612612
};

0 commit comments

Comments
 (0)