Short term fix needed, to allow to move on, but need to understand cause
bug observed both on github and locally
bug =
def test_data_resources_file_content():
"""Test that data file content can be read."""
data_text = files(RESOURCES).joinpath("data1.txt").read_text()
if DEBUG:
print(data_text)
assert data_text == "hello world"
full install , user, in site-packages
data.text holds "hello world"
editable install
data.text holds "hello world\n"
so newline is being dealt with differently
probably due to when file copied to site packages
re-visit and check again later, or se if fixed in future upgraded versions
Short term fix needed, to allow to move on, but need to understand cause
bug observed both on github and locally
bug =
def test_data_resources_file_content(): """Test that data file content can be read.""" data_text = files(RESOURCES).joinpath("data1.txt").read_text() if DEBUG: print(data_text) assert data_text == "hello world"
full install , user, in site-packages data.text holds "hello world"
editable install data.text holds "hello world\n"
so newline is being dealt with differently
probably due to when file copied to site packages
re-visit and check again later, or se if fixed in future upgraded versions