Skip to content

Instantly share code, notes, and snippets.

@jan-matejka
Created March 6, 2017 21:40
Show Gist options
  • Select an option

  • Save jan-matejka/587088325d3d585f887eebe9416bc498 to your computer and use it in GitHub Desktop.

Select an option

Save jan-matejka/587088325d3d585f887eebe9416bc498 to your computer and use it in GitHub Desktop.
a.py:5 TypeError: string indices must be integers
@pytest.mark.parametrize("in_,out" [
("k: v\n" , {"k": "v"})
, ("k: v\n" , {"k": "v"})
, ("k.k: foo" , {"k": {'k': "foo"}})
, ("k.k1: v\nk.k2: v2\nk1.k: v3", {"k": "v"})
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment