Test the compiler correctly compiles and caches inputs
()
| 40 | |
| 41 | |
| 42 | def test_cache(): |
| 43 | """Test the compiler correctly compiles and caches inputs |
| 44 | """ |
| 45 | cp = compilerop.CachingCompiler() |
| 46 | ncache = len(linecache.cache) |
| 47 | cp.cache('x=1') |
| 48 | nt.assert_true(len(linecache.cache) > ncache) |
| 49 | |
| 50 | def test_proper_default_encoding(): |
| 51 | # Check we're in a proper Python 2 environment (some imports, such |