File tree Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Expand file tree Collapse file tree 1 file changed +0
-19
lines changed Original file line number Diff line number Diff line change @@ -114,22 +114,3 @@ def test_corrupt_cache(self):
114114 FileCache (tempdir )
115115
116116 shutil .rmtree (tempdir )
117-
118- @mock .patch ('vsc.utils.cache.jsonpickle.decode' )
119- def test_value_error (self , mock_decode ):
120- "Test to see that a ValueError upon decoding gets caught correctly"
121- tempdir = tempfile .mkdtemp ()
122- # create a tempfilename
123- (handle , filename ) = tempfile .mkstemp (dir = tempdir )
124- f = os .fdopen (handle , 'wb' )
125- g = gzip .GzipFile (mode = 'wb' , fileobj = f )
126- g .write (b'blabla no json gzip stuffz' )
127- g .close ()
128-
129- e = ValueError ('unable to find valid JSON' )
130- mock_decode .side_effect = e
131-
132- fc = FileCache (filename )
133-
134- self .assertTrue (fc .shelf == {})
135- shutil .rmtree (tempdir )
You can’t perform that action at this time.
0 commit comments