pep8/pyflakes fixes

This commit is contained in:
Martin A. Brown 2016-03-10 08:48:17 -08:00
parent abbd433ea1
commit 2180755a97
2 changed files with 3 additions and 2 deletions

View File

@ -66,7 +66,7 @@ ex_docbooksgml_dir = Namespace(
'DocBookSGML-Larger.sgml'), 'DocBookSGML-Larger.sgml'),
) )
unknown_doctype = Namespace( unknown_doctype = Namespace(
doctype=None, doctype=None,
filename=opj(sampledocs, 'Unknown-Doctype.xqf'), filename=opj(sampledocs, 'Unknown-Doctype.xqf'),
) )

View File

@ -225,7 +225,7 @@ class Test_swapdirs(TestToolsFilesystem):
swapdirs(a, b) swapdirs(a, b)
self.assertTrue(os.path.exists(b)) self.assertTrue(os.path.exists(b))
def test_swapdirs_b_missing(self): def test_swapdirs_with_file(self):
a = mkdtemp(dir=self.tempdir) a = mkdtemp(dir=self.tempdir)
afile = os.path.join(a, 'silly') afile = os.path.join(a, 'silly')
b = mkdtemp(dir=self.tempdir) b = mkdtemp(dir=self.tempdir)
@ -242,6 +242,7 @@ class Test_swapdirs(TestToolsFilesystem):
self.assertTrue(os.path.exists(b)) self.assertTrue(os.path.exists(b))
self.assertTrue(os.path.exists(bfile)) self.assertTrue(os.path.exists(bfile))
class Test_att_statinfo(unittest.TestCase): class Test_att_statinfo(unittest.TestCase):
def test_max_mtime(self): def test_max_mtime(self):