From dbadb3c93571fa969cf8bb0011b2f54db822693f Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 11 Feb 2017 14:01:04 -0500 Subject: Use the test-specific chdir method --- tests/test_files.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/test_files.py') diff --git a/tests/test_files.py b/tests/test_files.py index caab5b47..dadb22b5 100644 --- a/tests/test_files.py +++ b/tests/test_files.py @@ -38,7 +38,7 @@ class FilesTest(CoverageTest): a1 = self.abs_path("sub/proj1/file1.py") a2 = self.abs_path("sub/proj2/file2.py") d = os.path.normpath("sub/proj1") - os.chdir(d) + self.chdir(d) files.set_relative_directory() self.assertEqual(files.relative_filename(a1), "file1.py") self.assertEqual(files.relative_filename(a2), a2) -- cgit v1.2.1