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

DBM tests are failing on macOS #166

Open
Mic92 opened this issue Nov 18, 2018 · 2 comments
Open

DBM tests are failing on macOS #166

Mic92 opened this issue Nov 18, 2018 · 2 comments

Comments

@Mic92
Copy link

Mic92 commented Nov 18, 2018

======================================================================
ERROR: tests.test_cache.test_upgrade
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/nix/store/zx08zp64vl52jnvwgy485wx6l4q842zh-python3.6-nose-1.3.7/lib/python3.6/site-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/tests/test_cache.py", line 283, in test_upgrade
    test(os.path.join(dir, 'db'))
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/tests/test_cache.py", line 289, in _test_upgrade_has_key
    assert cache.has_key('foo')
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/cache.py", line 368, in has_key
    return key in self
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/cache.py", line 365, in __contains__
    return self._get_value(key).has_current_value()
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/container.py", line 304, in has_current_value
    self.namespace.acquire_read_lock()
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/container.py", line 208, in acquire_read_lock
    self.open('r', checkcount=True)
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/container.py", line 240, in open
    self.do_open(flags, replace)
  File "/private/tmp/nix-build-python3.6-Beaker-1.10.0.drv-0/source/beaker/container.py", line 585, in do_open
    self.dbm = self.dbmmodule.open(self.file, flags)
  File "/nix/store/0mha803yql9q7b6h93m8940z3sjbhiy8-python3-3.6.6/lib/python3.6/dbm/__init__.py", line 85, in open
    raise error[0]("need 'c' or 'n' flag to open new db")
dbm.error: need 'c' or 'n' flag to open new db

full log: https://logs.nix.ci/?key=nixos/nixpkgs.50537&attempt_id=f3a1165f-030e-4003-8d97-07b3ae8bf468

Linux seems fine.

@Mic92
Copy link
Author

Mic92 commented Nov 18, 2018

Noticed in NixOS/nixpkgs#50537

@Mic92
Copy link
Author

Mic92 commented Feb 24, 2019

bump

Zer0- added a commit to Zer0-/nixpkgs that referenced this issue Apr 2, 2019
- The aim was to get this building on hydra
- Midway I discovered a PR by Mic92 that bumps the version to 1.10.0,
  I have included some of his fixes to run tests correctly:
    - remove testing memcached (it tries to connect on import)
    - don't run external tests or a failing test on darwin
            (see bbangert/beaker#166)
    - run nosetests rather than setup.py test because we need to specify
    exclude options.
dotlambda pushed a commit to NixOS/nixpkgs that referenced this issue Apr 2, 2019
- The aim was to get this building on hydra
- Midway I discovered a PR by Mic92 that bumps the version to 1.10.0,
  I have included some of his fixes to run tests correctly:
    - remove testing memcached (it tries to connect on import)
    - don't run external tests or a failing test on darwin
            (see bbangert/beaker#166)
    - run nosetests rather than setup.py test because we need to specify
    exclude options.

(cherry picked from commit d94b113)
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

No branches or pull requests

1 participant