class_docstr: Test StringConverter
class_docstr_tok: ["Test","StringConverter"]
docstr: Make sure we don't lose an explicit default
docstr_tok: ["Make","sure","we","do","n't","lose","an","explicit","default"]
code: def test_keep_default(self):
      "Make sure we don't lose an explicit default"
      converter = StringConverter(None, missing_values="", default=-999)
      converter.upgrade("3.14159265")
      assert_equal(converter.default, -999)
      assert_equal(converter.type, np.dtype(float))
      #
      converter = StringConverter(None, missing_values="", default=0)
      converter.upgrade("3.14159265")
      assert_equal(converter.default, 0)
      assert_equal(converter.type, np.dtype(float))
  
imports: import time
  from datetime import date
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_raises
  from numpy.lib._iotools import LineSplitter, NameValidator, StringConverter, has_nested_fields, easy_dtype, flatten_dtype
label_desc: Use image node_id 6 for calling the TestStringConverter obj's underlying member method code with example usage: obj.test_keep_default() without return types