dstl / baleen

Entity Extraction Text Processor
Apache License 2.0
148 stars 40 forks source link

Tests fail when run as a super-user #52

Open jamesdbaker opened 6 years ago

jamesdbaker commented 6 years ago

The following two tests fail when running as a user with super-user privileges (e.g. sudo, root) on Linux:

The cause of this is that when running as a super user, you have permission to write to read-only files. But the above tests attempt to write to read-only files in order to test the error handling. The tests expect the writes to fail, but as a super-user they don't and the test therefore fails instead.