Permalink
Browse files

Fix python3 random import error (#324)

* attempt to fix the imoprt error in test

* attempt to fix the import error in test

* temporary fix for random import error in python 3
  • Loading branch information...
1 parent 93855c7 commit b392b7af20e155c96a626a39de3cc588ea138902 @dawenl dawenl committed with dustinvtran Nov 7, 2016
Showing with 3 additions and 8 deletions.
  1. +1 −0 .gitignore
  2. +1 −1 .travis.yml
  3. +0 −6 edward/stats/distributions.py
  4. +1 −1 setup.cfg
View
@@ -33,6 +33,7 @@
*.xdy
*.tdo
*.pyc
+*.swp
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
View
@@ -42,7 +42,7 @@ script:
- if [[ "$TEST_MODE" == "PEP8" ]]; then
PYTHONPATH=$PWD:$PYTHONPATH py.test --pep8 -m pep8 -n0;
else
- PYTHONPATH=$PWD:$PYTHONPATH py.test tests/;
+ PYTHONPATH=$PWD:$PYTHONPATH py.test;
fi
after_success:
- coveralls
@@ -1095,9 +1095,3 @@ def __init__(self):
del _WrapperDistribution
del _object_name
del _candidate
-
-# Display only the objects and not their classes in this module.
-_globals_keys = list(six.iterkeys(_globals))
-_globals_values = list(six.itervalues(_globals))
-__all__ = [name for name, method in zip(_globals_keys, _globals_values)
- if not inspect.isclass(method)]
View
@@ -10,6 +10,6 @@ ignore=E111,E114
# Set maximum allowed line length (default: 79)
max-line-length=80
-[pytest]
+[tool:pytest]
pep8ignore = E111 E114
pep8maxlinelength = 80

0 comments on commit b392b7a

Please sign in to comment.