summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2018-06-17 07:11:25 -0400
committerTim Harder <radhermit@gentoo.org>2018-06-17 07:24:51 -0400
commit8eb09c83d6906084538403b8f72392799df784ac (patch)
tree4f23e5a4cc0c954b4608576fc0b542c5c08c1fa4 /dev-python/pyfakefs/files
parentmail-mta/protonmail-bridge-bin: new package (diff)
downloadgentoo-8eb09c83d6906084538403b8f72392799df784ac.tar.gz
gentoo-8eb09c83d6906084538403b8f72392799df784ac.tar.bz2
gentoo-8eb09c83d6906084538403b8f72392799df784ac.zip
dev-python/pyfakefs: version bump to 3.4.3
Diffstat (limited to 'dev-python/pyfakefs/files')
-rw-r--r--dev-python/pyfakefs/files/pyfakefs-3.4.3-tests.patch40
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-python/pyfakefs/files/pyfakefs-3.4.3-tests.patch b/dev-python/pyfakefs/files/pyfakefs-3.4.3-tests.patch
new file mode 100644
index 000000000000..c87005b054c9
--- /dev/null
+++ b/dev-python/pyfakefs/files/pyfakefs-3.4.3-tests.patch
@@ -0,0 +1,40 @@
+Drop checks that fail due to sandboxing and skip failing tell check.
+
+--- pyfakefs-3.4.3/pyfakefs/tests/fake_os_test.py
++++ pyfakefs-3.4.3/pyfakefs/tests/fake_os_test.py
+@@ -688,7 +688,6 @@
+ self.os.chdir(directory)
+ self.assert_raises_os_error(dir_error, self.os.remove, dir_path)
+ self.assertTrue(self.os.path.exists(dir_path))
+- self.assert_raises_os_error(errno.ENOENT, self.os.remove, '/plugh')
+
+ def test_remove_dir_linux(self):
+ self.check_linux_only()
+@@ -1202,6 +1201,8 @@
+ self.assertEqual(b'\0\0abcde', f.read())
+
+ def test_append_mode_tell_linux_windows(self):
++ # skipping real fs test - python2 on the actual filesystem is also 7
++ self.skip_real_fs()
+ # Regression test for #300
+ self.check_linux_and_windows()
+ tell_result = 5 if self.is_python2 else 7
+@@ -2443,8 +2444,8 @@
+ # trying to create a link from a non-existent file should fail
+ self.skip_if_symlink_not_supported()
+ self.assert_raises_os_error(errno.ENOENT,
+- self.os.link, '/nonexistent_source',
+- '/link_dest')
++ self.os.link, 'nonexistent_source',
++ 'link_dest')
+
+ def test_link_delete(self):
+ self.skip_if_symlink_not_supported()
+@@ -2791,7 +2792,6 @@
+ self.os.chdir(directory)
+ self.assert_raises_os_error(dir_error, self.os.remove, dir_path)
+ self.assertTrue(self.os.path.exists(dir_path))
+- self.assert_raises_os_error(errno.ENOENT, self.os.remove, '/Plugh')
+
+ def test_remove_dir_mac_os(self):
+ self.check_macos_only()