File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -66,20 +66,20 @@ def test_mode(self):
6666 # Bulletproof test for mode parameter
6767 import os
6868 import tempfile
69-
69+
7070 # Ek fresh temporary directory mein file banate hain
7171 with tempfile .TemporaryDirectory () as tmpdir :
7272 temp_fn = os .path .join (tmpdir , "test_shelf" )
7373 try :
7474 # Sirf check karna hai ki 'mode' accept ho raha hai bina crash ke
7575 with shelve .open (temp_fn , mode = 0o666 ) as s :
7676 s ['key' ] = 'value'
77-
77+
7878 # Check ki koi na koi file generate hui ya nahi
7979 self .assertTrue (len (os .listdir (tmpdir )) > 0 )
8080 except Exception as e :
8181 self .fail (f"shelve.open failed with mode parameter: { e } " )
82-
82+
8383 def test_open_template (self , filename = None , protocol = None ):
8484 os .mkdir (self .dirname )
8585 self .addCleanup (os_helper .rmtree , self .dirname )
You can’t perform that action at this time.
0 commit comments