MCPcopy Create free account
hub / github.com/numpy/numpy / test_simple_cflags

Method test_simple_cflags

numpy/distutils/tests/test_npy_pkg_config.py:65–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

63
64class TestParseFlags:
65 def test_simple_cflags(self):
66 d = parse_flags("-I/usr/include")
67 assert_(d['include_dirs'] == ['/usr/include'])
68
69 d = parse_flags("-I/usr/include -DFOO")
70 assert_(d['include_dirs'] == ['/usr/include'])
71 assert_(d['macros'] == ['FOO'])
72
73 d = parse_flags("-I /usr/include -DFOO")
74 assert_(d['include_dirs'] == ['/usr/include'])
75 assert_(d['macros'] == ['FOO'])
76
77 def test_simple_lflags(self):
78 d = parse_flags("-L/usr/lib -lfoo -L/usr/lib -lbar")

Callers

nothing calls this directly

Calls 2

parse_flagsFunction · 0.90
assert_Function · 0.90

Tested by

no test coverage detected