Skip to content

Commit

Permalink
Formatting test for scalar of type void.
Browse files Browse the repository at this point in the history
  • Loading branch information
jwoillez committed Aug 30, 2012
1 parent 2f28574 commit be46fc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion numpy/core/tests/test_print.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,8 @@ def test_scalar_format():
('{0:g}', 1.5, np.float16),
('{0:g}', 1.5, np.float32),
('{0:g}', 1.5, np.float64),
('{0:g}', 1.5, np.longdouble)]
('{0:g}', 1.5, np.longdouble),
('{0}', 'A', np.void)]
# Python 2.6 doesn't implement complex.__format__
if sys.version_info[:2] > (2, 6):
tests += [('{0:g}', 1.5+0.5j, np.complex64),
Expand Down

0 comments on commit be46fc7

Please sign in to comment.