cma-open / simple

A very simple python package with a command line tool
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

BUG - investigate alternative file read behaviour between editable and user installs #19

Open jonathan-winn-geo opened 1 year ago

jonathan-winn-geo commented 1 year ago

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