Skip to content
This repository has been archived by the owner on Jan 11, 2022. It is now read-only.

Commit

Permalink
Don't rely on Unix stuff for unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Nordhausen committed Aug 28, 2015
1 parent 04ed6ae commit 5bd777e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/yamlreader_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def test_should_fail_on_invalid_glob(self):
self.assertRaises(YamlReaderError, yaml_load, "testdata/gaga*")

def test_should_return_default_data_if_empty_file_given(self):
self.assertEqual(yaml_load("/dev/null", defaultdata={"foo":"bar"}), {"foo":"bar"})
self.assertEqual(yaml_load("testdata/empty.yaml", defaultdata={"foo":"bar"}), {"foo":"bar"})

def test_should_fail_on_invalid_yaml_dir(self):
self.assertRaises(YamlReaderError, yaml_load, "testdata")
Expand Down
Empty file added testdata/data1/empty.yaml
Empty file.

0 comments on commit 5bd777e

Please sign in to comment.