Browse Source

Use files.chdir

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

4
test/test_chordpro/test_parser.py

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

Loading…
Cancel
Save