File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -318,8 +318,6 @@ class bar:
318
318
# Module name may be prefixed with "test.", depending on how run.
319
319
self .assertEqual (repr (bar .bar ), "<class '%s.bar'>" % bar .__name__ )
320
320
321
- # TODO: RUSTPYTHON
322
- @unittest .expectedFailure
323
321
def test_instance (self ):
324
322
self ._check_path_limitations ('baz' )
325
323
write_file (os .path .join (self .subpkgname , 'baz.py' ), '''\
@@ -332,8 +330,6 @@ class baz:
332
330
self .assertTrue (repr (ibaz ).startswith (
333
331
"<%s.baz object at 0x" % baz .__name__ ))
334
332
335
- # TODO: RUSTPYTHON
336
- @unittest .expectedFailure
337
333
def test_method (self ):
338
334
self ._check_path_limitations ('qux' )
339
335
eq = self .assertEqual
Original file line number Diff line number Diff line change @@ -185,7 +185,11 @@ impl PyBaseObject {
185
185
/// Return repr(self).
186
186
#[ pymethod( magic) ]
187
187
fn repr ( zelf : PyObjectRef ) -> String {
188
- format ! ( "<{} object at {:#x}>" , zelf. class( ) . name, zelf. get_id( ) )
188
+ format ! (
189
+ "<{} object at {:#x}>" ,
190
+ zelf. class( ) . tp_name( ) ,
191
+ zelf. get_id( )
192
+ )
189
193
}
190
194
191
195
#[ pyclassmethod( magic) ]
You can’t perform that action at this time.
0 commit comments