Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failures on Python 3 #35

Closed
rahulporuri opened this issue Feb 18, 2019 · 1 comment · Fixed by #36
Closed

Test failures on Python 3 #35

rahulporuri opened this issue Feb 18, 2019 · 1 comment · Fixed by #36

Comments

@rahulporuri
Copy link
Contributor

Three test failures are seen when installing codetools from pypi in a python 3 env. Note that some of the dependencies need to be installed manually as they are not specified in the codetools setup script. See #26 .

======================================================================
ERROR: Assigning floats to arrays
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_test_case.py", line 44, in test1
    file_object = open(os.path.join(self.code_dir,'test1.py'), 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_codes/test1.py'

======================================================================
ERROR: Different sized arrays
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_test_case.py", line 65, in test2
    file_object = open(os.path.join(self.code_dir,'test2.py'), 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_codes/test2.py'

======================================================================
ERROR: Same sized array assignments within 'with' block
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_test_case.py", line 86, in test3
    file_object = open(os.path.join(self.code_dir,'test3.py'), 'r')
FileNotFoundError: [Errno 2] No such file or directory: '/home/rporuri/.edm/envs/temp3/lib/python3.6/site-packages/codetools/contexts/tests/with_mask_codes/test3.py'

The errors are because .../with_mask_codes/ doesn't contain an __init__ file so the test*.py files in the submodule aren't included in the sdist uploaded to pypi.

@rahulporuri
Copy link
Contributor Author

rahulporuri commented Feb 18, 2019

This should be fixed along with #34 with the use of a manifest file.

rahulporuri pushed a commit that referenced this issue Feb 26, 2019
i.e. the missing py test files.

	modified:   setup.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant