From 2180755a97a62627b6d1665e996c042d57320652 Mon Sep 17 00:00:00 2001 From: "Martin A. Brown" Date: Thu, 10 Mar 2016 08:48:17 -0800 Subject: [PATCH] pep8/pyflakes fixes --- tests/example.py | 2 +- tests/test_utils.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/example.py b/tests/example.py index c8f630b..073a25c 100644 --- a/tests/example.py +++ b/tests/example.py @@ -66,7 +66,7 @@ ex_docbooksgml_dir = Namespace( 'DocBookSGML-Larger.sgml'), ) -unknown_doctype = Namespace( +unknown_doctype = Namespace( doctype=None, filename=opj(sampledocs, 'Unknown-Doctype.xqf'), ) diff --git a/tests/test_utils.py b/tests/test_utils.py index a2ada71..bea5594 100644 --- a/tests/test_utils.py +++ b/tests/test_utils.py @@ -225,7 +225,7 @@ class Test_swapdirs(TestToolsFilesystem): swapdirs(a, b) self.assertTrue(os.path.exists(b)) - def test_swapdirs_b_missing(self): + def test_swapdirs_with_file(self): a = mkdtemp(dir=self.tempdir) afile = os.path.join(a, 'silly') b = mkdtemp(dir=self.tempdir) @@ -242,6 +242,7 @@ class Test_swapdirs(TestToolsFilesystem): self.assertTrue(os.path.exists(b)) self.assertTrue(os.path.exists(bfile)) + class Test_att_statinfo(unittest.TestCase): def test_max_mtime(self):