When I ran nosetests for ex 47 I got an error. The error is -
E
ERROR: Failure: SyntaxError (invalid syntax (ex47_tests.py, line 2))
Traceback (most recent call last):
File “c:\users\amisha singh\appdata\local\programs\python\python37-32\lib\site-packages\nose\failure.py”, line 39, in runTest
raise self.exc_val.with_traceback(self.tb)
File “c:\users\amisha singh\appdata\local\programs\python\python37-32\lib\site-packages\nose\loader.py”, line 418, in loadTestsFromName
addr.filename, addr.module)
File “c:\users\amisha singh\appdata\local\programs\python\python37-32\lib\site-packages\nose\importer.py”, line 47, in importFromPath
return self.importFromDir(dir_path, fqname)
File “c:\users\amisha singh\appdata\local\programs\python\python37-32\lib\site-packages\nose\importer.py”, line 94, in importFromDir
mod = load_module(part_fqname, fh, filename, desc)
File “C:\Users\AMISHA SINGH.venvs\Documents\Py\lib\imp.py”, line 234, in load_module
return load_source(name, filename, file)
File “C:\Users\AMISHA SINGH.venvs\Documents\Py\lib\imp.py”, line 171, in load_source
module = _load(spec)
File “”, line 696, in _load
File “”, line 677, in _load_unlocked
File “”, line 724, in exec_module
File “”, line 860, in get_code
File “”, line 791, in source_to_code
File “”, line 219, in _call_with_frames_removed
File “C:\Users\AMISHA SINGH\projects\ex47\tests\ex47_tests.py”, line 2
import ex47.game import Room
^
SyntaxError: invalid syntax
Ran 1 test in 0.070s
FAILED (errors=1)
I have installed ex 47 module then uninstalled it. But whenever I am running nosetests I am getting the error. I tried 3-4 times figuring it out. But I am stuck. Help me.