Skip to content

Commit

Permalink
Remove import test for now...
Browse files Browse the repository at this point in the history
  • Loading branch information
danthedeckie committed Apr 8, 2020
1 parent 8dc8bba commit 41c99b8
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions test_simpleeval.py
Expand Up @@ -7,7 +7,6 @@
"""
# pylint: disable=too-many-public-methods, missing-docstring
import sys
import subprocess
import unittest
import operator
import ast
Expand Down Expand Up @@ -1081,21 +1080,5 @@ def test_functions_are_disallowed_in_expressions(self):
simpleeval.DEFAULT_FUNCTIONS = DF.copy()


class TestImport(unittest.TestCase):
def test_import_ok_without_site(self):
# PyInstaller doesn't include site (so 'help' builtin)
# This catches #69
try:
import runpy
except ImportError:
# No runpy on travis... so can't do this test here. :-(
# If you know of a fix for this, or can wrangle travis into working,
# please submit a PR!
return
self.assertEqual(0, subprocess.call([sys.executable, '-S', '-m', 'simpleeval']))
self.assertNotIn('help', subprocess.check_output([
sys.executable, '-Sc', 'import simpleeval;print(simpleeval.DISALLOW_FUNCTIONS)']))


if __name__ == '__main__': # pragma: no cover
unittest.main()

0 comments on commit 41c99b8

Please sign in to comment.