@@ -422,8 +422,7 @@ def test_tag_to_full_tag_path(self):
422422 self .rorepo .tag (tag )
423423 except ValueError as valueError :
424424 value_errors .append (valueError .args [0 ])
425- if value_errors :
426- raise ValueError ('. ' .join (value_errors ))
425+ raise ValueError ('. ' .join (value_errors ))
427426
428427 def test_archive (self ):
429428 tmpfile = tempfile .mktemp (suffix = 'archive-test' )
@@ -456,7 +455,7 @@ def test_should_display_blame_information(self, git):
456455 tlist = b [0 ][1 ]
457456 self .assertTrue (tlist )
458457 self .assertTrue (isinstance (tlist [0 ], str ))
459- self .assertTrue (len (tlist ) < sum (len (t ) for t in tlist )) # test for single-char bug
458+ self .assertTrue (len (tlist ) < sum (len (t ) for t in tlist )) # test for single-char bug
460459
461460 # BINARY BLAME
462461 git .return_value = fixture ('blame_binary' )
@@ -465,7 +464,7 @@ def test_should_display_blame_information(self, git):
465464
466465 def test_blame_real (self ):
467466 c = 0
468- nml = 0 # amount of multi-lines per blame
467+ nml = 0 # amount of multi-lines per blame
469468 for item in self .rorepo .head .commit .tree .traverse (
470469 predicate = lambda i , d : i .type == 'blob' and i .path .endswith ('.py' )):
471470 c += 1
@@ -497,8 +496,7 @@ def test_blame_incremental(self, git):
497496
498497 # Original line numbers
499498 orig_ranges = flatten ([entry .orig_linenos for entry in blame_output ])
500- self .assertEqual (orig_ranges , flatten (
501- [range (2 , 3 ), range (14 , 15 ), range (1 , 2 ), range (2 , 13 ), range (13 , 15 )])) # noqa E501
499+ self .assertEqual (orig_ranges , flatten ([range (2 , 3 ), range (14 , 15 ), range (1 , 2 ), range (2 , 13 ), range (13 , 15 )])) # noqa E501
502500
503501 @mock .patch .object (Git , '_call_process' )
504502 def test_blame_complex_revision (self , git ):
@@ -542,9 +540,9 @@ def test_untracked_files(self, rwrepo):
542540 # end for each run
543541
544542 def test_config_reader (self ):
545- reader = self .rorepo .config_reader () # all config files
543+ reader = self .rorepo .config_reader () # all config files
546544 assert reader .read_only
547- reader = self .rorepo .config_reader ("repository" ) # single config file
545+ reader = self .rorepo .config_reader ("repository" ) # single config file
548546 assert reader .read_only
549547
550548 def test_config_writer (self ):
@@ -741,7 +739,7 @@ def _assert_rev_parse(self, name):
741739 def test_rw_rev_parse (self , rwrepo ):
742740 # verify it does not confuse branches with hexsha ids
743741 ahead = rwrepo .create_head ('aaaaaaaa' )
744- assert (rwrepo .rev_parse (str (ahead )) == ahead .commit )
742+ assert (rwrepo .rev_parse (str (ahead )) == ahead .commit )
745743
746744 def test_rev_parse (self ):
747745 rev_parse = self .rorepo .rev_parse
@@ -1053,7 +1051,7 @@ def test_git_work_tree_env(self, rw_dir):
10531051 def test_rebasing (self , rw_dir ):
10541052 r = Repo .init (rw_dir )
10551053 fp = osp .join (rw_dir , 'hello.txt' )
1056- r .git .commit ("--allow-empty" , message = "init" , )
1054+ r .git .commit ("--allow-empty" , message = "init" ,)
10571055 with open (fp , 'w' ) as fs :
10581056 fs .write ("hello world" )
10591057 r .git .add (Git .polish_url (fp ))
0 commit comments