[svn r41224] Added failing test, which I would suppose to pass
--HG-- branch : trunk
This commit is contained in:
parent
417d97c850
commit
b8f6596760
|
@ -281,3 +281,15 @@ def test_deindent():
|
|||
"""
|
||||
lines = deindent(source.splitlines())
|
||||
assert lines == ['', 'def f():', ' def g():', ' pass', ' ']
|
||||
|
||||
def test_write_read():
|
||||
py.test.skip("Failing")
|
||||
tmpdir = py.test.ensuretemp("source_write_read")
|
||||
source = py.code.Source('''
|
||||
class A(object):
|
||||
def method(self):
|
||||
x = 1
|
||||
''')
|
||||
tmpdir.ensure("a.py").write(source)
|
||||
s2 = py.code.Source(tmpdir.join("a.py").pyimport().A)
|
||||
assert source == s2
|
||||
|
|
Loading…
Reference in New Issue