diff options
author | Christoph Gohlke <cgohlke@uci.edu> | 2013-09-08 17:52:03 -0700 |
---|---|---|
committer | Christoph Gohlke <cgohlke@uci.edu> | 2013-09-08 17:52:03 -0700 |
commit | 8edccea5a3d7248de4074a7b43ad13bd81f7a535 (patch) | |
tree | c9d84a2a7218d62c48bce9d646d261cf8b3750a5 /numpy/lib/tests/test_utils.py | |
parent | 0b7191397e7893011fda16402e1fbd56afb911d3 (diff) | |
download | numpy-8edccea5a3d7248de4074a7b43ad13bd81f7a535.tar.gz |
TST: add test for Python 3.4 _ast.NameConstant
Diffstat (limited to 'numpy/lib/tests/test_utils.py')
-rw-r--r-- | numpy/lib/tests/test_utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/numpy/lib/tests/test_utils.py b/numpy/lib/tests/test_utils.py index 21415d96b..93c674766 100644 --- a/numpy/lib/tests/test_utils.py +++ b/numpy/lib/tests/test_utils.py @@ -46,5 +46,9 @@ def test_deprecate_fn(): assert_('old_func3' in new_func3.__doc__) assert_('new_func3' in new_func3.__doc__) +def test_safe_eval_nameconstant(): + # Test if safe_eval supports Python 3.4 _ast.NameConstant + utils.safe_eval('None') + if __name__ == "__main__": run_module_suite() |