Browse Source

Use files.chdir

pull/172/head
Oliverpool 9 years ago
parent
commit
f70df32d6d
  1. 6
      test/test_chordpro/test_parser.py

6
test/test_chordpro/test_parser.py

@ -47,10 +47,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest):
def chdir(): def chdir():
"""Context to temporarry change current directory to this file directory """Context to temporarry change current directory to this file directory
""" """
olddir = os.getcwd() with files.chdir(resource_filename(__name__, "")):
os.chdir(resource_filename(__name__, "")) yield
yield
os.chdir(olddir)
def assertRender(self, base, destformat): # pylint: disable=invalid-name def assertRender(self, base, destformat): # pylint: disable=invalid-name
"""Assert that `{base}.source` is correctly rendered in the `destformat`. """Assert that `{base}.source` is correctly rendered in the `destformat`.

Loading…
Cancel
Save