Skip to content

Commit

Permalink
Use mock when setuptools is not installed
Browse files Browse the repository at this point in the history
  • Loading branch information
manicmaniac committed Nov 30, 2024
1 parent 3d8f307 commit ef24e45
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 7 additions & 0 deletions test_arc4.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
import timeit
import unittest

try:
import setuptools
except ImportError:
import sys
import unittest.mock
sys.modules['setuptools'] = unittest.mock.Mock()

import arc4
import setup

Expand Down
6 changes: 0 additions & 6 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,3 @@ envlist = py{39,310,311,312,313}

[testenv]
commands = {envpython} -munittest discover --verbose

[testenv:py312]
deps = setuptools

[testenv:py313]
deps = setuptools

0 comments on commit ef24e45

Please sign in to comment.