PY-21083 Fixed: Inspection of float.fromhex expecting incorrect arguments

Fix skeleton for float.fromhex
This commit is contained in:
Semyon Proshev
2016-11-15 15:37:19 +03:00
parent 7a1ee38531
commit 15e5d938d5
3 changed files with 7 additions and 2 deletions
@@ -1072,7 +1072,7 @@ class float(object):
return 0.0
@staticmethod
def fromhex(cls, string):
def fromhex(string):
"""Create a floating-point number from a hexadecimal string.
:type string: str
+1 -1
View File
@@ -805,7 +805,7 @@ class float(object):
return 0.0
@staticmethod
def fromhex(cls, string):
def fromhex(string):
"""Create a floating-point number from a hexadecimal string.
:type string: str
@@ -217,6 +217,11 @@ public class PyArgumentListInspectionTest extends PyTestCase {
doMultiFileTest();
}
// PY-21083
public void testFloatFromhex() {
doTest();
}
private void doMultiFileTest() {
final String folderPath = "inspections/PyArgumentListInspection/" + getTestName(false) + "/";