Debian Codegraph @

rpython/tool/test/test_nullpath.py

raw symbols SCIP
1 import sys, os
2 import py
3 from rpython.tool.nullpath import NullPyPathLocal
4
5 def test_nullpath(tmpdir):
6 path = NullPyPathLocal(tmpdir)
7 assert repr(path).endswith('[fake]')
8 foo_txt = path.join('foo.txt')
9 assert isinstance(foo_txt, NullPyPathLocal)
10 #
11 f = foo_txt.open('w')
12 assert f.name == os.devnull