diff
stringlengths
139
3.65k
message
stringlengths
8
627
diff_languages
stringclasses
1 value
diff --git a/tests/test_modeling_albert.py b/tests/test_modeling_albert.py index <HASH>..<HASH> 100644 --- a/tests/test_modeling_albert.py +++ b/tests/test_modeling_albert.py @@ -29,6 +29,7 @@ if is_torch_available(): AlbertModel, AlbertForMaskedLM, AlbertForSequenceClassification, + A...
Added test for AlbertForTokenClassification
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,9 +7,9 @@ read = lambda filepath: codecs.open(filepath, 'r', 'utf-8').read() tests_require = [ 'Django>=1.2', 'nose==1.2.1', - 'mock>=0.7.2', - 'httpretty>=0.5.9', - 'sure>=1.1.7', + 'mock==1.0.1', + ...
Freezing test deps to avoid problems in future versions of deps
py
diff --git a/src/transformers/models/mt5/__init__.py b/src/transformers/models/mt5/__init__.py index <HASH>..<HASH> 100644 --- a/src/transformers/models/mt5/__init__.py +++ b/src/transformers/models/mt5/__init__.py @@ -86,7 +86,7 @@ else: def __getattr__(self, name): if name == "MT5Tokenizer": ...
fix typo with mt5 init (#<I>)
py
diff --git a/spyder/app/mainwindow.py b/spyder/app/mainwindow.py index <HASH>..<HASH> 100644 --- a/spyder/app/mainwindow.py +++ b/spyder/app/mainwindow.py @@ -895,11 +895,6 @@ class MainWindow(QMainWindow): self.editor = Editor(self) self.editor.register_plugin() - # Start code completion ...
Main window: Start LSP Python client after the session was loaded - This avoid sending requests to the server before it's up, which was incorrectly restarting the PyLS and messing with completion and linting when loading the active project from the previous session.
py
diff --git a/python/ray/tune/trial_runner.py b/python/ray/tune/trial_runner.py index <HASH>..<HASH> 100644 --- a/python/ray/tune/trial_runner.py +++ b/python/ray/tune/trial_runner.py @@ -919,6 +919,8 @@ class TrialRunner: flat_result = flatten_dict(result) self._validate_result_metrics(flat_result) ...
[Tune] Call on_trial_complete after final checkpoint (#<I>)
py
diff --git a/tests/unit/mocked/lint_test.py b/tests/unit/mocked/lint_test.py index <HASH>..<HASH> 100644 --- a/tests/unit/mocked/lint_test.py +++ b/tests/unit/mocked/lint_test.py @@ -25,10 +25,7 @@ from pylint import epylint class LintTests(unittest.TestCase): """ Evaluate lint test output. - """ - ...
Refactor pylint test - Remove the assertion based on the STD_ERR. The new release of pylint chose to issue informational deprection warnings to STD_ERR which was triggering the test to fail unnecessarily. There is no need to check the STD_ERR for a pylint run because if a problem is encountered the test will still f...
py
diff --git a/asammdf/mdf.py b/asammdf/mdf.py index <HASH>..<HASH> 100644 --- a/asammdf/mdf.py +++ b/asammdf/mdf.py @@ -37,6 +37,7 @@ from .blocks.utils import ( count_channel_groups, UINT16_u, UINT64_u, + debug_channel, ) from .blocks.v2_v3_blocks import Channel as ChannelV3 from .blocks.v2_v3_bloc...
debug continuation of issue#<I>
py
diff --git a/openstack_dashboard/dashboards/project/firewalls/tables.py b/openstack_dashboard/dashboards/project/firewalls/tables.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/firewalls/tables.py +++ b/openstack_dashboard/dashboards/project/firewalls/tables.py @@ -36,6 +36,7 @@ class AddPo...
Add missing "plus" symbol to the firwall Add Policy button Updated the AddPolicyLink class to add the attribute "icon" with a value of "plus" to fix the inconsistency referred in the bug Change-Id: I9d8efae<I>c<I>c3a1f<I>ae<I>be4 Closes-Bug: #<I>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -226,7 +226,7 @@ def do_setup(): 'flask-cache>=0.13.1, <0.14', 'flask-login==0.2.11', 'flask-swagger==0.2.13', - 'flask-wtf==0.12', + 'flask-wtf==0.14', ...
[AIRFLOW-<I>] Fix flask-wtf version for test_csrf_rejection For now, SecurityTests.test_csrf_rejection fails because flask-wtf version specified in setup.py is too old. This PR fixes it. Closes #<I> from sekikn/AIRFLOW-<I>
py
diff --git a/cgutils/cgroup.py b/cgutils/cgroup.py index <HASH>..<HASH> 100644 --- a/cgutils/cgroup.py +++ b/cgutils/cgroup.py @@ -270,7 +270,7 @@ class SlabinfoStat(dict): if m: return SlabinfoStat._PARSERS[m.group(1)](lines) else: - raise EnvironmentError('No header found in ...
memory: fix an exception on reading memory.kmem.slabinfo memory.kmem.slabinfo can be empty now.
py
diff --git a/tests/proxy/map_test.py b/tests/proxy/map_test.py index <HASH>..<HASH> 100644 --- a/tests/proxy/map_test.py +++ b/tests/proxy/map_test.py @@ -5,7 +5,7 @@ from hazelcast.proxy.map import EntryEventType from hazelcast.serialization.api import IdentifiedDataSerializable from hazelcast.serialization.predicat...
add <I> test category to test_add_entry_listener_item_loaded (#<I>) test since EntryLoaded event is added on IMDG <I>
py
diff --git a/citrination_client/views/tests/test_model_template_builder.py b/citrination_client/views/tests/test_model_template_builder.py index <HASH>..<HASH> 100644 --- a/citrination_client/views/tests/test_model_template_builder.py +++ b/citrination_client/views/tests/test_model_template_builder.py @@ -33,7 +33,7 @@...
Use environment var for site on data views tests
py
diff --git a/flynn/decoder.py b/flynn/decoder.py index <HASH>..<HASH> 100644 --- a/flynn/decoder.py +++ b/flynn/decoder.py @@ -169,6 +169,26 @@ class Decoder(object): raise InvalidCborError("Expected {} bytes, got {} bytes instead".format(n, len(m))) return m +class StandardDecoder(Decoder): + def __init__(sel...
Implement StandardDecoder with extended tagging support
py
diff --git a/allennlp/version.py b/allennlp/version.py index <HASH>..<HASH> 100644 --- a/allennlp/version.py +++ b/allennlp/version.py @@ -1,6 +1,6 @@ _MAJOR = "0" _MINOR = "4" -_REVISION = "3" +_REVISION = "4-unreleased" VERSION_SHORT = "{0}.{1}".format(_MAJOR, _MINOR) VERSION = "{0}.{1}.{2}".format(_MAJOR, _MIN...
Uptick version to unreleased. (#<I>)
py
diff --git a/geopy/adapters.py b/geopy/adapters.py index <HASH>..<HASH> 100644 --- a/geopy/adapters.py +++ b/geopy/adapters.py @@ -170,6 +170,8 @@ class BaseSyncAdapter(BaseAdapter): class BaseAsyncAdapter(BaseAdapter): """Base class for asynchronous adapters. + + See also: :ref:`Async Mode <async_mode>`. ...
adapters doc: add reference from BaseAsyncAdapter to `Async Mode` section
py
diff --git a/conu/utils/__init__.py b/conu/utils/__init__.py index <HASH>..<HASH> 100644 --- a/conu/utils/__init__.py +++ b/conu/utils/__init__.py @@ -99,7 +99,7 @@ def run_cmd(cmd, return_output=False, **kwargs): please check `help(subprocess.Popen)` :return: None or str """ - logger.debug("c...
Correct form of docker run command in log
py
diff --git a/examples/pymata_blink.py b/examples/pymata_blink.py index <HASH>..<HASH> 100644 --- a/examples/pymata_blink.py +++ b/examples/pymata_blink.py @@ -46,6 +46,7 @@ for x in range(10): # wait a half second between toggles. time.sleep(.5) firmata.digital_write(BOARD_LED, 0) + time.sleep(.5) ...
Update pymata_blink.py Added missing timedelay after the LED is pin is set to 0.
py
diff --git a/peerplays/cli/cli.py b/peerplays/cli/cli.py index <HASH>..<HASH> 100644 --- a/peerplays/cli/cli.py +++ b/peerplays/cli/cli.py @@ -47,7 +47,9 @@ def set(ctx, key, value): @main.command(help="Show configuration variables") -def configuration(): +@click.pass_context +@offlineChain +def configuration(ctx)...
ensure we have the context when looking up configuration in cli
py
diff --git a/eventsourcing/domain.py b/eventsourcing/domain.py index <HASH>..<HASH> 100644 --- a/eventsourcing/domain.py +++ b/eventsourcing/domain.py @@ -490,7 +490,7 @@ def _check_no_variable_params(method: FunctionType) -> None: # Todo: Support VAR_POSITIONAL? # annotations["__star_args__"]...
Changed from 'elif' to 'if'.
py
diff --git a/bonfire/graylog_api.py b/bonfire/graylog_api.py index <HASH>..<HASH> 100644 --- a/bonfire/graylog_api.py +++ b/bonfire/graylog_api.py @@ -8,6 +8,7 @@ from __future__ import division, print_function import requests import arrow import syslog +import six from .dateutils import datetime_converter @@ -...
Fix iteritems in API
py
diff --git a/openquake/baselib/performance.py b/openquake/baselib/performance.py index <HASH>..<HASH> 100644 --- a/openquake/baselib/performance.py +++ b/openquake/baselib/performance.py @@ -198,8 +198,8 @@ class Monitor(object): def __repr__(self): calc_id = ' #%s ' % self.calc_id if self.calc_id else ...
Removed a space [skip CI]
py
diff --git a/nose/test_potential.py b/nose/test_potential.py index <HASH>..<HASH> 100644 --- a/nose/test_potential.py +++ b/nose/test_potential.py @@ -1759,6 +1759,17 @@ def test_SoftenedNeedleBarPotential_density(): assert sbp.dens(4.,0.,phi=numpy.pi/4.) > sbp.dens(2.*numpy.sqrt(2.),2.*numpy.sqrt(2.),phi=0.), 'So...
Add test of error when the number of hz functions does not agree with the number of sigma functions for DiskSCFPotential
py
diff --git a/bcloud/Downloader.py b/bcloud/Downloader.py index <HASH>..<HASH> 100644 --- a/bcloud/Downloader.py +++ b/bcloud/Downloader.py @@ -187,7 +187,11 @@ class Downloader(threading.Thread, GObject.GObject): return content_length = match.group(1) size = int(conten...
Fixed: check file is empty or not before downloading it; <URL>
py
diff --git a/openquake/calculators/tests/classical_test.py b/openquake/calculators/tests/classical_test.py index <HASH>..<HASH> 100644 --- a/openquake/calculators/tests/classical_test.py +++ b/openquake/calculators/tests/classical_test.py @@ -512,7 +512,7 @@ hazard_uhs-std.csv 'hazard_map-mean.csv'], case_...
Fixed misprint in comment [skip CI]
py
diff --git a/ipfsapi/client.py b/ipfsapi/client.py index <HASH>..<HASH> 100644 --- a/ipfsapi/client.py +++ b/ipfsapi/client.py @@ -7,11 +7,13 @@ Classes: """ from __future__ import absolute_import +import os + from . import http, multipart, utils, exceptions, encoding -DEFAULT_HOST = 'localhost' -DEFAULT_PORT = ...
Add ability to influence the default IPFS API host & port using environment variables
py
diff --git a/fireplace/card.py b/fireplace/card.py index <HASH>..<HASH> 100644 --- a/fireplace/card.py +++ b/fireplace/card.py @@ -255,9 +255,6 @@ class PlayableCard(BaseCard): return self.game.queue_actions(self, [Heal(target, amount)]) def hit(self, target, amount): - if getattr(target, "immune", False): - ...
Move immune check to Character._hit()
py
diff --git a/airflow/providers/amazon/aws/sensors/sqs.py b/airflow/providers/amazon/aws/sensors/sqs.py index <HASH>..<HASH> 100644 --- a/airflow/providers/amazon/aws/sensors/sqs.py +++ b/airflow/providers/amazon/aws/sensors/sqs.py @@ -28,7 +28,7 @@ class SQSSensor(BaseSensorOperator): """ Get messages from an...
Fixes doc for SQSSensor (#<I>) As far as I understand, Docstrings for `SQSSensor` seemes to include a mistake. The key for XCom should be 'messages', not 'message'. <URL>
py
diff --git a/octodns/provider/ns1.py b/octodns/provider/ns1.py index <HASH>..<HASH> 100644 --- a/octodns/provider/ns1.py +++ b/octodns/provider/ns1.py @@ -233,11 +233,11 @@ class Ns1Provider(BaseProvider): }, ) params['filters'] = [] - if len(params[...
Move if branch around to avoid creating unnecessary filter chains
py
diff --git a/tensorpack/libinfo.py b/tensorpack/libinfo.py index <HASH>..<HASH> 100644 --- a/tensorpack/libinfo.py +++ b/tensorpack/libinfo.py @@ -2,7 +2,7 @@ import os # issue#7378 may happen with custom opencv. It doesn't hurt to disable opencl -os.environ['OPENCV_OPENCL_RUNTIME'] = '' +os.environ['OPENCV_OPENCL_...
Don't warn about opencv-opencl-runtime (fix #<I>)
py
diff --git a/oidc_provider/views.py b/oidc_provider/views.py index <HASH>..<HASH> 100644 --- a/oidc_provider/views.py +++ b/oidc_provider/views.py @@ -65,7 +65,7 @@ class AuthorizeView(View): try: authorize.validate_params() - if request.user.is_authenticated(): + if (reque...
Use request.user.is_authenticated as a bool with recent Django (#<I>) Django <I> changed request.user.is_authenticated from a function to a boolean and Django <I> dropped the backward compatibility. In order to use django-oidc-provider with Django <I>, AuthorizeView needs to handle request.user.is_authenticated as ...
py
diff --git a/did/utils.py b/did/utils.py index <HASH>..<HASH> 100644 --- a/did/utils.py +++ b/did/utils.py @@ -615,10 +615,9 @@ class User(object): return u"{0} <{1}>".format(self.name, self.email) # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -# DEFAULT LOGGER +# Default...
Remove obsolete method to get the default logger
py
diff --git a/src/pywws/service/aws_api_gw_service.py b/src/pywws/service/aws_api_gw_service.py index <HASH>..<HASH> 100644 --- a/src/pywws/service/aws_api_gw_service.py +++ b/src/pywws/service/aws_api_gw_service.py @@ -91,8 +91,7 @@ class ToService(pywws.service.BaseToService): self.last_rain = None ...
Eval later in case no headers are set
py
diff --git a/example/linkedin.py b/example/linkedin.py index <HASH>..<HASH> 100644 --- a/example/linkedin.py +++ b/example/linkedin.py @@ -60,5 +60,19 @@ def get_linkedin_oauth_token(): return session.get('linkedin_token') +def change_linkedin_query(uri, headers, body): + auth = headers.pop('Authorization')...
linkedin works. another non-standard oauth2 service.
py
diff --git a/imagemounter/unmounter.py b/imagemounter/unmounter.py index <HASH>..<HASH> 100644 --- a/imagemounter/unmounter.py +++ b/imagemounter/unmounter.py @@ -209,6 +209,9 @@ class Unmounter(object): def unmount_loopbacks(self): """Unmounts all loopback devices as identified by :func:`find_loopbacks`"...
Re-index loopback devices prior to unmount since previous umounts can remove devices causing the existing index to hold erroneous devices.
py
diff --git a/ReText/highlighter.py b/ReText/highlighter.py index <HASH>..<HASH> 100644 --- a/ReText/highlighter.py +++ b/ReText/highlighter.py @@ -25,7 +25,7 @@ class ReTextHighlighter(QSyntaxHighlighter): (r'(?<=\[)[^\[\]]*(?=\])', Qt.blue, QFont.Normal), # 11: Links and images (r'(?<=\]\()[^\(\)]*(?=\))', Non...
highlighter: fix regex for reStructuredText directives (cherry picked from commit 3e<I>a<I>aaeaa8af0ede0eeda<I>a<I>c<I>)
py
diff --git a/salt/modules/temp.py b/salt/modules/temp.py index <HASH>..<HASH> 100644 --- a/salt/modules/temp.py +++ b/salt/modules/temp.py @@ -40,4 +40,5 @@ def file(suffix='', prefix='tmp', parent=None): salt '*' temp.file salt '*' temp.file prefix='mytemp-' parent='/var/run/' ''' - return te...
undo pylint fix to fix pylint
py
diff --git a/ballet/project.py b/ballet/project.py index <HASH>..<HASH> 100644 --- a/ballet/project.py +++ b/ballet/project.py @@ -6,6 +6,7 @@ import git from dynaconf import LazySettings from funcy import cached_property, fallback, re_find +from ballet.compat import safepath from ballet.exc import ConfigurationEr...
Fix py<I> path issue Yet again
py
diff --git a/epydoc/test_epydoc.py b/epydoc/test_epydoc.py index <HASH>..<HASH> 100644 --- a/epydoc/test_epydoc.py +++ b/epydoc/test_epydoc.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # -*- coding: utf-8 -*- from functools import partial
Added shebang to allow direct execution of the test script
py
diff --git a/build-support/bin/generate_docs.py b/build-support/bin/generate_docs.py index <HASH>..<HASH> 100644 --- a/build-support/bin/generate_docs.py +++ b/build-support/bin/generate_docs.py @@ -222,7 +222,6 @@ def run_pants_help_all() -> dict[str, Any]: "pants.backend.experimental.scala", "pants....
[internal] remove non-existent backend name in docs generator (#<I>) Remove `pants.backend.experimental.terraform.lint.tffmt` as a backend from the docs generator, as it doesn't exist. My bad for adding it in the first place. :( [ci skip-rust] [ci skip-build-wheels]
py
diff --git a/cocaine/tools/actions/group.py b/cocaine/tools/actions/group.py index <HASH>..<HASH> 100644 --- a/cocaine/tools/actions/group.py +++ b/cocaine/tools/actions/group.py @@ -55,7 +55,11 @@ class Refresh(actions.Storage): @engine.asynchronous def execute(self): - names = yield List(self.stora...
RegreshGroup action will no longer sleep when group name is specified.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,7 +7,7 @@ def readme(): setup(name='zk_shell', - version='0.92', + version='0.92.1', description='A Python - Kazoo based - shell for ZooKeeper', long_description=readme(), classifiers=[
Release version <I> which handles str/bytes for Python3 support
py
diff --git a/dingo/core/network/grids.py b/dingo/core/network/grids.py index <HASH>..<HASH> 100644 --- a/dingo/core/network/grids.py +++ b/dingo/core/network/grids.py @@ -246,17 +246,18 @@ class LVGridDingo(GridDingo): def __init__(self, **kwargs): super().__init__(**kwargs) - self._stations = []...
Rename attribute `stations` to `station`
py
diff --git a/src/cmdline/settings.py b/src/cmdline/settings.py index <HASH>..<HASH> 100644 --- a/src/cmdline/settings.py +++ b/src/cmdline/settings.py @@ -40,6 +40,9 @@ class Settings(object): continue for k, i in data.items(): + if k.startswith('_'...
Update settings.yml to include a _SUBCOMMANDS section This can hold subcommand metadata in order to contain information like help text for subcommands.
py
diff --git a/nodeconductor/structure/handlers.py b/nodeconductor/structure/handlers.py index <HASH>..<HASH> 100644 --- a/nodeconductor/structure/handlers.py +++ b/nodeconductor/structure/handlers.py @@ -438,7 +438,7 @@ def sync_service_settings_with_backend(sender, instance, created=False, **kwargs backend = ins...
Directly set sync state (NC-<I>)
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -107,7 +107,8 @@ setup( 'Intended Audience :: Developers', 'License :: OSI Approved :: Apache Software License', 'Operating System :: OS Independent', - 'Programming Language :: Python', + ...
Changed README.md
py
diff --git a/m2bk/fs.py b/m2bk/fs.py index <HASH>..<HASH> 100644 --- a/m2bk/fs.py +++ b/m2bk/fs.py @@ -74,7 +74,7 @@ def cleanup(): """ Cleanup the output directory """ - if os.path.exists(_output_dir): + if _output_dir and os.path.exists(_output_dir): log.msg_warn("Cleaning up output dire...
_output_dir must have a value before even considered This caused a bug, if an exception arised before even the fs started up, a chain of weird exceptions would happen.
py
diff --git a/push_notifications/models.py b/push_notifications/models.py index <HASH>..<HASH> 100644 --- a/push_notifications/models.py +++ b/push_notifications/models.py @@ -34,7 +34,7 @@ class GCMDeviceQuerySet(models.query.QuerySet): if message is not None: data["message"] = message - reg_ids = list(sel...
qs.send_message refactoring (values_list makes additional sql query)
py
diff --git a/inginious/frontend/plugins/auth/google_auth.py b/inginious/frontend/plugins/auth/google_auth.py index <HASH>..<HASH> 100644 --- a/inginious/frontend/plugins/auth/google_auth.py +++ b/inginious/frontend/plugins/auth/google_auth.py @@ -16,8 +16,8 @@ from inginious.frontend.user_manager import AuthMethod aut...
Updated google_auth.py for scope changes (#<I>) Google recently changed scope attributes. Using new scope attributes fixes this. Scope has changed from "email profile" to "<URL>
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -16,5 +16,5 @@ structures, and refer to fields within a structure using a 'selector'. packages=find_packages(), requires=['richenum (>=1.0.0)'], test_suite="run_tests", - version='0.4.5', + version='0.4.6'...
Let's call this <I> Version numbers are free.
py
diff --git a/tests/test_operation.py b/tests/test_operation.py index <HASH>..<HASH> 100644 --- a/tests/test_operation.py +++ b/tests/test_operation.py @@ -1,5 +1,3 @@ -import datetime - import pytest from flask_restful_swagger import swagger
testing: Fix unused import on test_operation
py
diff --git a/poco/drivers/std/__init__.py b/poco/drivers/std/__init__.py index <HASH>..<HASH> 100644 --- a/poco/drivers/std/__init__.py +++ b/poco/drivers/std/__init__.py @@ -79,8 +79,9 @@ class StdPoco(Poco): ip = 'localhost' port = local_port elif device_platform() == 'IOS': - ...
use localhost for unity on ios
py
diff --git a/tests/args.py b/tests/args.py index <HASH>..<HASH> 100755 --- a/tests/args.py +++ b/tests/args.py @@ -103,6 +103,8 @@ def test_graphics(): plot.add_plot(width=r'0.8\textwidth', placement=r'\centering') plot.add_caption(caption='I am a caption.') + +def test_quantities(): # Quantities ...
Move quantities arguments test into their own function
py
diff --git a/tests/test_dumper.py b/tests/test_dumper.py index <HASH>..<HASH> 100644 --- a/tests/test_dumper.py +++ b/tests/test_dumper.py @@ -261,18 +261,6 @@ def test_dict_more(): check_dumps("{ a : b ,\n123 : 'pouet' }") -def test_set_one(): - check_dumps("{a}") - - -def test_set_one_comma(): - ...
[fix] set sugar syntaxic isn't present in python <I>
py
diff --git a/documentcloud/__init__.py b/documentcloud/__init__.py index <HASH>..<HASH> 100644 --- a/documentcloud/__init__.py +++ b/documentcloud/__init__.py @@ -410,7 +410,7 @@ and try again.") Deletes a Document. """ self.fetch( - 'documents/%s.json' % id, + 'document...
Another hacker around encoding thing
py
diff --git a/test/testBase.py b/test/testBase.py index <HASH>..<HASH> 100644 --- a/test/testBase.py +++ b/test/testBase.py @@ -131,6 +131,8 @@ class Test(unittest.TestCase): del observed, observer, observer_things, observed_things self.buf.sort() self.assertEqual(expected, self.bu...
Added a note about CPython compatibility
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -69,10 +69,15 @@ if command not in ['test', 'coverage']: long_description = open('README.rst').read() install_requires = [] +tests_require = [ + 'PyYAML', +] if sys.version_info < (2, 7): install_requires.exte...
Adjust setup.py dependencies for testing Pull in PyYAML for testing, so that tox and Travis will run the YAML tests. Only pull in unittest2 on Python <I> when testing, because it's not needed for just using configargparse.
py
diff --git a/seleniumbase/fixtures/base_case.py b/seleniumbase/fixtures/base_case.py index <HASH>..<HASH> 100755 --- a/seleniumbase/fixtures/base_case.py +++ b/seleniumbase/fixtures/base_case.py @@ -1944,7 +1944,7 @@ class BaseCase(unittest.TestCase): self.driver.execute_script("window.open('');") tim...
Add new method: "self.switch_to_newest_window()"
py
diff --git a/bottle_sqlalchemy.py b/bottle_sqlalchemy.py index <HASH>..<HASH> 100644 --- a/bottle_sqlalchemy.py +++ b/bottle_sqlalchemy.py @@ -146,7 +146,7 @@ class SQLAlchemyPlugin(object): session.commit() raise finally: - if type(self.create_session) ...
replaced type() with isinstance() isinstance() is far more flexible and is recommended by the docs.
py
diff --git a/jupyter_server_proxy/handlers.py b/jupyter_server_proxy/handlers.py index <HASH>..<HASH> 100644 --- a/jupyter_server_proxy/handlers.py +++ b/jupyter_server_proxy/handlers.py @@ -173,7 +173,8 @@ class ProxyHandler(WebSocketHandlerMixin, IPythonHandler): headers['X-Forwarded-Context'] = context_...
changed _ by - in HTTP_X_FORWARDED_PREFIX
py
diff --git a/simuvex/procedures/syscalls/handler.py b/simuvex/procedures/syscalls/handler.py index <HASH>..<HASH> 100644 --- a/simuvex/procedures/syscalls/handler.py +++ b/simuvex/procedures/syscalls/handler.py @@ -29,6 +29,7 @@ syscall_map['CGC'][7] = 'random' class handler(simuvex.SimProcedure): def run(self)...
initialization of self._syscall
py
diff --git a/livv_bin/VV_test.py b/livv_bin/VV_test.py index <HASH>..<HASH> 100644 --- a/livv_bin/VV_test.py +++ b/livv_bin/VV_test.py @@ -102,10 +102,11 @@ class AbstractTest(object): if len(sameList) == 0: print(" Benchmark and model data not available for " + test) - return...
Fixing the result of AbstractTest.bit4bit() when there is no data to compare.
py
diff --git a/test/common/test_common.py b/test/common/test_common.py index <HASH>..<HASH> 100755 --- a/test/common/test_common.py +++ b/test/common/test_common.py @@ -442,7 +442,7 @@ class FailoverMemcachedWrapper(object): victim = random.choice(['master', 'slave']) print "Killing %s..." % vic...
Made failover test shutdown() nodes instead of kill()ing them so that data is not lost.
py
diff --git a/txtorcon/torconfig.py b/txtorcon/torconfig.py index <HASH>..<HASH> 100644 --- a/txtorcon/torconfig.py +++ b/txtorcon/torconfig.py @@ -541,6 +541,9 @@ class Integer(TorConfigType): def parse(self, s): return int(s) + def validate(self, s, instance, name): + return int(s) + class...
Parse value after saving Otherwise the raw value which is sent to the server will be retrieved when accessing the configuration entry. If we wait for CONF_CHANGED in the future this will be done there.
py
diff --git a/tests/test_pipenv.py b/tests/test_pipenv.py index <HASH>..<HASH> 100644 --- a/tests/test_pipenv.py +++ b/tests/test_pipenv.py @@ -50,7 +50,7 @@ class TestPipenv(): # Ensure uninstall works. assert 'Werkzeug' not in pipfile_output - assert 'Werkzeug' in lockfile_output + as...
test normalized output in Pipfile.lock
py
diff --git a/openpnm/algorithms/_generic_transport.py b/openpnm/algorithms/_generic_transport.py index <HASH>..<HASH> 100644 --- a/openpnm/algorithms/_generic_transport.py +++ b/openpnm/algorithms/_generic_transport.py @@ -451,8 +451,7 @@ class GenericTransport(GenericAlgorithm): self._validate_data_health() ...
Minor refactor of GenericTransport [no ci]
py
diff --git a/salt/fileclient.py b/salt/fileclient.py index <HASH>..<HASH> 100644 --- a/salt/fileclient.py +++ b/salt/fileclient.py @@ -752,7 +752,7 @@ class RemoteClient(Client): def symlink_list(self, env='base', prefix=''): ''' - List the files on the master + List symlinked files and di...
Give the symlink function more clarity
py
diff --git a/osrframework/utils/credentials.py b/osrframework/utils/credentials.py index <HASH>..<HASH> 100644 --- a/osrframework/utils/credentials.py +++ b/osrframework/utils/credentials.py @@ -57,5 +57,5 @@ def get_credentials(): creds[plat] = [c] else: creds[plat] = creds[plat].app...
Add a tab for showing credentials loaded
py
diff --git a/salesforce/testrunner/settings.py b/salesforce/testrunner/settings.py index <HASH>..<HASH> 100644 --- a/salesforce/testrunner/settings.py +++ b/salesforce/testrunner/settings.py @@ -145,7 +145,8 @@ LOGGING = { }, 'mail_admins': { 'level': 'ERROR', - 'class': 'django.utils.log.AdminEmailHandler'...
Fixed deprecation warning during tests about logging filters.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100755 --- a/setup.py +++ b/setup.py @@ -71,6 +71,16 @@ def main(): print('Done.') elif len(argv) >= 2 and argv[1] == 'pypi': + # (Re)generate the code to make sure we don't push without it + gen_tl() + + # Try importing the tele...
Assert that module was generated correctly on setup.py pypi
py
diff --git a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py b/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py index <HASH>..<HASH> 100644 --- a/openstack_dashboard/dashboards/project/access_and_security/security_groups/forms.py +++ b/openstack_das...
Set description field as required for nova-network Project -> Access & Security Panel Description field is required for creating a new security group if nova-network is used. Change-Id: Ie<I>ed2e<I>f<I>ea<I>f<I>c5a8b<I>d4c<I>ca<I> Closes-bug: #<I>
py
diff --git a/bugzoo/core/coverage.py b/bugzoo/core/coverage.py index <HASH>..<HASH> 100644 --- a/bugzoo/core/coverage.py +++ b/bugzoo/core/coverage.py @@ -196,3 +196,14 @@ class TestSuiteCoverage(object): within this coverage report. """ return len(self.__test_coverage) + + @property + ...
feature: added lines property to TestSuiteCoverage
py
diff --git a/TheCannon/dataset.py b/TheCannon/dataset.py index <HASH>..<HASH> 100644 --- a/TheCannon/dataset.py +++ b/TheCannon/dataset.py @@ -37,7 +37,7 @@ else: class Dataset(object): """ A class to represent Cannon input: a dataset of spectra and labels """ - def __init__(self, wl, tr_ID, tr_flux, tr_ivar...
remove tr delta from list of params
py
diff --git a/bin/PCoA.py b/bin/PCoA.py index <HASH>..<HASH> 100755 --- a/bin/PCoA.py +++ b/bin/PCoA.py @@ -5,9 +5,9 @@ import itertools import sys errors=[] try: - from brewer2mpl import qualitative + from palettable.colorbrewer.qualitative import Set3_12 except ImportError as ie: - errors.append(ie) + ...
Updated PCoA.py. Updated color library to palettable from brewer2mpl.
py
diff --git a/salt/loader.py b/salt/loader.py index <HASH>..<HASH> 100644 --- a/salt/loader.py +++ b/salt/loader.py @@ -270,7 +270,7 @@ def raw_mod(opts, name, functions, mod='modules'): testmod['test.ping']() ''' loader = LazyLoader( - _module_dirs(opts, mod, 'rawmodule'), + _module_dir...
Fix loader.py's raw_mod() to look in all module dirs Previously, it wasn't looking in module dirs defined via the `module_dirs` config option. Fix this issue.
py
diff --git a/examples/tutorials/sst2_classification_non_distributed.py b/examples/tutorials/sst2_classification_non_distributed.py index <HASH>..<HASH> 100644 --- a/examples/tutorials/sst2_classification_non_distributed.py +++ b/examples/tutorials/sst2_classification_non_distributed.py @@ -40,7 +40,7 @@ DEVICE = torch....
Correct typo in SST-2 tutorial (#<I>)
py
diff --git a/torf/_torrent.py b/torf/_torrent.py index <HASH>..<HASH> 100644 --- a/torf/_torrent.py +++ b/torf/_torrent.py @@ -1265,6 +1265,7 @@ class Torrent(): utils.assert_type(md, ('info', 'name'), (str,), must_exist=True) utils.assert_type(md, ('info', 'piece length'), (int,), must_exist=True) ...
Torrent.validate(): Expect "private" to be bool or int
py
diff --git a/faker/providers/address/fi_FI/__init__.py b/faker/providers/address/fi_FI/__init__.py index <HASH>..<HASH> 100644 --- a/faker/providers/address/fi_FI/__init__.py +++ b/faker/providers/address/fi_FI/__init__.py @@ -6,15 +6,15 @@ from .. import Provider as AddressProvider class Provider(AddressProvider): ...
fi_FI address and job lists updated based on Finnish open data
py
diff --git a/lib/svtplay_dl/service/svtplay.py b/lib/svtplay_dl/service/svtplay.py index <HASH>..<HASH> 100644 --- a/lib/svtplay_dl/service/svtplay.py +++ b/lib/svtplay_dl/service/svtplay.py @@ -205,7 +205,7 @@ class Svtplay(Service, MetadataThumbMixin): if tab == i["id"]: collecti...
svtplay: dont download related videos with -A fixes: #<I>
py
diff --git a/src/python/grpcio_tests/commands.py b/src/python/grpcio_tests/commands.py index <HASH>..<HASH> 100644 --- a/src/python/grpcio_tests/commands.py +++ b/src/python/grpcio_tests/commands.py @@ -231,6 +231,9 @@ class TestGevent(setuptools.Command): # TODO(https://github.com/grpc/grpc/pull/15411) enable...
Add a list of banned macOS gevent tests (#<I>)
py
diff --git a/trakt/core/helpers.py b/trakt/core/helpers.py index <HASH>..<HASH> 100644 --- a/trakt/core/helpers.py +++ b/trakt/core/helpers.py @@ -16,8 +16,8 @@ def from_iso8601(value): # Convert to UTC dt = dt.to('UTC') - # Return naive datetime object - return dt.naive + # Return datetime object ...
Changed `from_iso<I>()` method to return datetime objects with "tzinfo"
py
diff --git a/pyocd/board/board_ids.py b/pyocd/board/board_ids.py index <HASH>..<HASH> 100644 --- a/pyocd/board/board_ids.py +++ b/pyocd/board/board_ids.py @@ -142,7 +142,7 @@ BOARD_ID_TO_INFO = { "0833": BoardInfo( "DISCO-L072CZ-LRWAN1", "stm32l072cz", None, ), "0835": BoardInfo( "NU...
board: correct stm<I>wbrg target
py
diff --git a/multitables_test.py b/multitables_test.py index <HASH>..<HASH> 100644 --- a/multitables_test.py +++ b/multitables_test.py @@ -14,7 +14,7 @@ import threading import multitables __author__ = "G. H. Collin" -__version__ = "1.0.0" +__version__ = "1.1.0" def lcm(a,b):
Incremented version number on tests.
py
diff --git a/simple_history/registry_tests/tests.py b/simple_history/registry_tests/tests.py index <HASH>..<HASH> 100644 --- a/simple_history/registry_tests/tests.py +++ b/simple_history/registry_tests/tests.py @@ -11,12 +11,10 @@ from django.test import TestCase from simple_history import exceptions, register from...
Remove import that isn't use
py
diff --git a/tornado/iostream.py b/tornado/iostream.py index <HASH>..<HASH> 100644 --- a/tornado/iostream.py +++ b/tornado/iostream.py @@ -177,7 +177,10 @@ class IOStream(object): def _run_callback(self, callback, *args, **kwargs): try: - callback(*args, **kwargs) + # Use a NullCon...
Run all IOStream callbacks inside a NullContext so that exception handlers are run in the right order.
py
diff --git a/salt/states/user.py b/salt/states/user.py index <HASH>..<HASH> 100644 --- a/salt/states/user.py +++ b/salt/states/user.py @@ -88,6 +88,10 @@ def _changes(name, attributes supported as integers only. ''' + # Set gid to None in cases an empty string is passed + if gid == '': + gid = N...
Ensure empty string gid is set to None
py
diff --git a/bidict/_frozen.py b/bidict/_frozen.py index <HASH>..<HASH> 100644 --- a/bidict/_frozen.py +++ b/bidict/_frozen.py @@ -159,7 +159,7 @@ class frozenbidict(BidirectionalMapping): # noqa: N801 then caches the result to make future calls *O(1)*. """ if getattr(self, '_hash', None) is...
appease pylint
py
diff --git a/lib/autokey/scripting/engine.py b/lib/autokey/scripting/engine.py index <HASH>..<HASH> 100644 --- a/lib/autokey/scripting/engine.py +++ b/lib/autokey/scripting/engine.py @@ -203,6 +203,9 @@ Folders created within temporary folders must themselves be set temporary") not ...
Add document to override arg
py
diff --git a/qa_tests/risk/scenario_damage/case_4/test.py b/qa_tests/risk/scenario_damage/case_4/test.py index <HASH>..<HASH> 100644 --- a/qa_tests/risk/scenario_damage/case_4/test.py +++ b/qa_tests/risk/scenario_damage/case_4/test.py @@ -21,7 +21,7 @@ from qa_tests import risk from openquake.engine.db import models ...
qa_tests/risk/scenario_damage/case_4/test: Fixed a spelling mistake.
py
diff --git a/setup.py b/setup.py index <HASH>..<HASH> 100644 --- a/setup.py +++ b/setup.py @@ -7,13 +7,15 @@ __license__ = "BSD-2-Clause" __email__ = "giulio.rossetti@gmail.com" +here = path.abspath(path.dirname(__file__)) + def get_requirements(remove_links=True): """ lists the requirements to install....
:arrow_up: versioning
py
diff --git a/tests/_testtools.py b/tests/_testtools.py index <HASH>..<HASH> 100644 --- a/tests/_testtools.py +++ b/tests/_testtools.py @@ -32,7 +32,7 @@ def strategy_dtm(): def strategy_dtm_small(): - return strategy_2d_array(int, 0, 10, min_side=2, max_side=10) + return strategy_2d_array(int, 0, 10, min_sid...
generate smaller matrix in strategy_dtm_small
py
diff --git a/volapi/volapi.py b/volapi/volapi.py index <HASH>..<HASH> 100644 --- a/volapi/volapi.py +++ b/volapi/volapi.py @@ -842,8 +842,11 @@ class Room: continue break - params = {"room": self.room_id, "key": key, "filename": filename} - + if self.pas...
Fix uploads to passworded rooms
py
diff --git a/examples/progress.py b/examples/progress.py index <HASH>..<HASH> 100644 --- a/examples/progress.py +++ b/examples/progress.py @@ -7,9 +7,9 @@ draft = draftlog.inject() def progress_bar(progress): if progress >= 100: progress = 100 - units = progress / 2 + units = int(progress /...
Float division in Python 3 is implicit Casting units to ints will ensure an integer on both platforms.
py
diff --git a/haas/tests/test_coverage.py b/haas/tests/test_coverage.py index <HASH>..<HASH> 100644 --- a/haas/tests/test_coverage.py +++ b/haas/tests/test_coverage.py @@ -8,12 +8,13 @@ from __future__ import absolute_import, unicode_literals try: import coverage + from ..coverage import Coverage except Impo...
Fix test error when coverage is not installed
py
diff --git a/rebulk/__version__.py b/rebulk/__version__.py index <HASH>..<HASH> 100644 --- a/rebulk/__version__.py +++ b/rebulk/__version__.py @@ -4,4 +4,4 @@ Version module """ # pragma: no cover -__version__ = '0.8.0' +__version__ = '0.8.1.dev0'
Back to development: <I>
py
diff --git a/girc/asyncio_compat.py b/girc/asyncio_compat.py index <HASH>..<HASH> 100644 --- a/girc/asyncio_compat.py +++ b/girc/asyncio_compat.py @@ -3,6 +3,7 @@ Version independent compat wrapper for asyncio """ import asyncio +import sys __all__ = ('ensure_future',)
Fix the asyncio compat file
py
diff --git a/tensor2tensor/bin/t2t_decoder.py b/tensor2tensor/bin/t2t_decoder.py index <HASH>..<HASH> 100644 --- a/tensor2tensor/bin/t2t_decoder.py +++ b/tensor2tensor/bin/t2t_decoder.py @@ -72,7 +72,8 @@ def create_decode_hparams(): decode_hp = decoding.decode_hparams(FLAGS.decode_hparams) decode_hp.shards = FLA...
Set decode_in_memory equal to True when one of FLAGS.decode_in_memory / decode_hparams.decode_in_memory is set to True. PiperOrigin-RevId: <I>
py
diff --git a/extra_views/advanced.py b/extra_views/advanced.py index <HASH>..<HASH> 100644 --- a/extra_views/advanced.py +++ b/extra_views/advanced.py @@ -16,7 +16,7 @@ class InlineFormSet(BaseInlineFormSetMixin): class ModelFormWithInlinesMixin(ModelFormMixin): def forms_valid(self, form, inlines): - se...
Save form with commit=True, not an object
py
diff --git a/c7n/filters/vpc.py b/c7n/filters/vpc.py index <HASH>..<HASH> 100644 --- a/c7n/filters/vpc.py +++ b/c7n/filters/vpc.py @@ -52,8 +52,6 @@ class DefaultVpcBase(Filter): vpcs = [v['VpcId'] for v in client.describe_vpcs(VpcIds=[vpc_id])['Vpcs'] if v['IsDefa...
don't set default_vpc to an empty string the method is checking for None fixes #<I>
py
diff --git a/harvestingkit/edpsciences_package.py b/harvestingkit/edpsciences_package.py index <HASH>..<HASH> 100644 --- a/harvestingkit/edpsciences_package.py +++ b/harvestingkit/edpsciences_package.py @@ -135,6 +135,11 @@ class EDPSciencesPackage(JatsPackage): return '' rec = {} title, ...
edpsciences_package: Astrophysics subject added
py
diff --git a/broadlink/__init__.py b/broadlink/__init__.py index <HASH>..<HASH> 100644 --- a/broadlink/__init__.py +++ b/broadlink/__init__.py @@ -31,6 +31,7 @@ def get_devices() -> Dict[int, Tuple[Type[device], str, str]]: 0x2736: (sp2, "SP mini+", "Broadlink"), 0x273e: (sp2, "SP mini", "Broadlink"),...
Add support for OEM Broadlink SP2-IL (0x<I>)
py