We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f191aa commit f6e6ef0Copy full SHA for f6e6ef0
Lib/test/test_bool.py
@@ -51,8 +51,6 @@ def test_float(self):
51
self.assertEqual(float(True), 1.0)
52
self.assertIsNot(float(True), True)
53
54
- # TODO: RUSTPYTHON
55
- @unittest.expectedFailure
56
def test_math(self):
57
self.assertEqual(+False, 0)
58
self.assertIsNot(+False, False)
vm/src/obj/objint.rs
@@ -462,8 +462,8 @@ impl PyInt {
462
}
463
464
#[pymethod(name = "__pos__")]
465
- fn pos(zelf: PyRef<Self>, _vm: &VirtualMachine) -> PyIntRef {
466
- zelf
+ fn pos(&self, _vm: &VirtualMachine) -> BigInt {
+ self.value.clone()
467
468
469
#[pymethod(name = "__float__")]
0 commit comments