forked from Rust-related/RustPython
merged and prepared for PR
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -606,7 +606,7 @@ Path: ast::Expression = {
|
||||
|
||||
// Decorators:
|
||||
Decorator: ast::Expression = {
|
||||
<Location:@L>"@" <p:Test> "\n" => {
|
||||
<location:@L>"@" <p:Test> "\n" => {
|
||||
p
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user